Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jul 2011 10:03:21 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@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: r223782 - stable/8/sys/net
Message-ID:  <201107051003.p65A3LmJ057933@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107051003.p65A3LmJ057933>