svn commit: r192262 - head/sys/netinet
Bjoern A. Zeeb
bz at FreeBSD.org
Sun May 17 20:53:10 UTC 2009
Author: bz
Date: Sun May 17 20:53:10 2009
New Revision: 192262
URL: http://svn.freebsd.org/changeset/base/192262
Log:
Unbreak options VIMAGE builds, in a followup to r192011 which did not
introduce INIT_VNET_NET() initializers necessary for accessing V_loif.
Submitted by: zec
Reviewed by: julian
Modified:
head/sys/netinet/in.c
Modified: head/sys/netinet/in.c
==============================================================================
--- head/sys/netinet/in.c Sun May 17 20:40:41 2009 (r192261)
+++ head/sys/netinet/in.c Sun May 17 20:53:10 2009 (r192262)
@@ -814,6 +814,7 @@ static int
in_ifinit(struct ifnet *ifp, struct in_ifaddr *ia, struct sockaddr_in *sin,
int scrub)
{
+ INIT_VNET_NET(ifp->if_vnet);
INIT_VNET_INET(ifp->if_vnet);
register u_long i = ntohl(sin->sin_addr.s_addr);
struct sockaddr_in oldaddr;
@@ -1007,6 +1008,7 @@ extern void arp_ifscrub(struct ifnet *if
static int
in_scrubprefix(struct in_ifaddr *target)
{
+ INIT_VNET_NET(curvnet);
INIT_VNET_INET(curvnet);
struct in_ifaddr *ia;
struct in_addr prefix, mask, p;
More information about the svn-src-all
mailing list