in_ifadown() can be void.
This commit is contained in:
parent
237bf7f773
commit
586904c22e
@ -433,15 +433,15 @@ in_ifadownkill(struct radix_node *rn, void *xap)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
in_ifadown(struct ifaddr *ifa, int delete)
|
||||
{
|
||||
struct in_ifadown_arg arg;
|
||||
struct radix_node_head *rnh;
|
||||
int fibnum;
|
||||
|
||||
if (ifa->ifa_addr->sa_family != AF_INET)
|
||||
return 1;
|
||||
KASSERT(ifa->ifa_addr->sa_family == AF_INET,
|
||||
("%s: wrong family", __func__));
|
||||
|
||||
for ( fibnum = 0; fibnum < rt_numfibs; fibnum++) {
|
||||
rnh = rt_tables_get_rnh(fibnum, AF_INET);
|
||||
@ -452,7 +452,6 @@ in_ifadown(struct ifaddr *ifa, int delete)
|
||||
RADIX_NODE_HEAD_UNLOCK(rnh);
|
||||
ifa->ifa_flags &= ~IFA_ROUTE; /* XXXlocking? */
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -411,7 +411,7 @@ void in_rtqdrain(void);
|
||||
int in_addprefix(struct in_ifaddr *, int);
|
||||
int in_scrubprefix(struct in_ifaddr *, u_int);
|
||||
void ip_input(struct mbuf *);
|
||||
int in_ifadown(struct ifaddr *ifa, int);
|
||||
void in_ifadown(struct ifaddr *ifa, int);
|
||||
struct mbuf *ip_fastforward(struct mbuf *);
|
||||
void *in_domifattach(struct ifnet *);
|
||||
void in_domifdetach(struct ifnet *, void *);
|
||||
|
Loading…
x
Reference in New Issue
Block a user