Unbreak options VIMAGE + nooptions INVARIANTS kernel builds.
Submitted by: julian Approved by: julian (mentor)
This commit is contained in:
parent
58a2bb4996
commit
d7fcc52895
@ -1131,10 +1131,10 @@ bad:
|
||||
int
|
||||
rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate)
|
||||
{
|
||||
INIT_VNET_NET(curvnet);
|
||||
/* XXX dst may be overwritten, can we move this to below */
|
||||
int dlen = SA_SIZE(dst), glen = SA_SIZE(gate);
|
||||
#ifdef INVARIANTS
|
||||
INIT_VNET_NET(curvnet);
|
||||
struct radix_node_head *rnh =
|
||||
V_rt_tables[rt->rt_fibnum][dst->sa_family];
|
||||
#endif
|
||||
|
@ -3617,7 +3617,9 @@ vnet_igmp_iattach(const void *unused __unused)
|
||||
static int
|
||||
vnet_igmp_idetach(const void *unused __unused)
|
||||
{
|
||||
#ifdef INVARIANTS
|
||||
INIT_VNET_INET(curvnet);
|
||||
#endif
|
||||
|
||||
CTR1(KTR_IGMPV3, "%s: tearing down", __func__);
|
||||
|
||||
|
@ -188,9 +188,7 @@ tcp_tw_init(void)
|
||||
void
|
||||
tcp_twstart(struct tcpcb *tp)
|
||||
{
|
||||
#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
|
||||
INIT_VNET_INET(tp->t_vnet);
|
||||
#endif
|
||||
struct tcptw *tw;
|
||||
struct inpcb *inp = tp->t_inpcb;
|
||||
int acknow;
|
||||
|
Loading…
x
Reference in New Issue
Block a user