svn commit: r223782 - stable/8/sys/net

Sergey Kandaurov pluknet at FreeBSD.org
Tue Jul 5 10:03:21 UTC 2011


Author: pluknet
Date: Tue Jul  5 10:03:21 2011
New Revision: 223782
URL: http://svn.freebsd.org/changeset/base/223782

Log:
  MFC r223625:
  
   Update ifc_len field of struct ifconf passed for the ioctl SIOCGIFCONF32.
  
  PR:		kern/158369

Modified:
  stable/8/sys/net/if.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (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)

Modified: stable/8/sys/net/if.c
==============================================================================
--- stable/8/sys/net/if.c	Tue Jul  5 07:05:18 2011	(r223781)
+++ stable/8/sys/net/if.c	Tue Jul  5 10:03:21 2011	(r223782)
@@ -2527,6 +2527,8 @@ ifioctl(struct socket *so, u_long cmd, c
 
 			error = ifconf(SIOCGIFCONF, (void *)&ifc);
 			CURVNET_RESTORE();
+			if (error == 0)
+				ifc32->ifc_len = ifc.ifc_len;
 			return (error);
 		}
 #endif


More information about the svn-src-stable mailing list