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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to