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
This commit is contained in:
parent
47916d0c37
commit
1600c117d8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192262
@ -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 *ifp, uint32_t addr);
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user