Date: Tue, 10 Aug 2010 10:17:01 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r211139 - stable/8/sys/net Message-ID: <201008101017.o7AAH1L2085952@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Aug 10 10:17:01 2010 New Revision: 211139 URL: http://svn.freebsd.org/changeset/base/211139 Log: MFC r210805: Properly set ifi_datalen for compat32 struct if_data32. PR: kern/149240 Modified: stable/8/sys/net/rtsock.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cam/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/xen/xenpci/ (props changed) Modified: stable/8/sys/net/rtsock.c ============================================================================== --- stable/8/sys/net/rtsock.c Tue Aug 10 10:15:34 2010 (r211138) +++ stable/8/sys/net/rtsock.c Tue Aug 10 10:17:01 2010 (r211139) @@ -1439,7 +1439,7 @@ copy_ifdata32(struct if_data *src, struc CP(*src, *dst, ifi_addrlen); CP(*src, *dst, ifi_hdrlen); CP(*src, *dst, ifi_link_state); - CP(*src, *dst, ifi_datalen); + dst->ifi_datalen = sizeof(struct if_data32); CP(*src, *dst, ifi_mtu); CP(*src, *dst, ifi_metric); CP(*src, *dst, ifi_baudrate);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008101017.o7AAH1L2085952>