Clean up some unused leftover code.
Pointed out by: ae
This commit is contained in:
parent
b0b955ade2
commit
0cbbbb7d30
@ -120,8 +120,6 @@ VNET_DEFINE(struct nd_prhead, nd_prefix);
|
|||||||
VNET_DEFINE(int, nd6_recalc_reachtm_interval) = ND6_RECALC_REACHTM_INTERVAL;
|
VNET_DEFINE(int, nd6_recalc_reachtm_interval) = ND6_RECALC_REACHTM_INTERVAL;
|
||||||
#define V_nd6_recalc_reachtm_interval VNET(nd6_recalc_reachtm_interval)
|
#define V_nd6_recalc_reachtm_interval VNET(nd6_recalc_reachtm_interval)
|
||||||
|
|
||||||
static struct sockaddr_in6 all1_sa;
|
|
||||||
|
|
||||||
int (*send_sendso_input_hook)(struct mbuf *, struct ifnet *, int, int);
|
int (*send_sendso_input_hook)(struct mbuf *, struct ifnet *, int, int);
|
||||||
|
|
||||||
static int nd6_is_new_addr_neighbor(struct sockaddr_in6 *,
|
static int nd6_is_new_addr_neighbor(struct sockaddr_in6 *,
|
||||||
@ -141,15 +139,9 @@ VNET_DEFINE(struct callout, nd6_timer_ch);
|
|||||||
void
|
void
|
||||||
nd6_init(void)
|
nd6_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
|
|
||||||
LIST_INIT(&V_nd_prefix);
|
LIST_INIT(&V_nd_prefix);
|
||||||
|
|
||||||
all1_sa.sin6_family = AF_INET6;
|
|
||||||
all1_sa.sin6_len = sizeof(struct sockaddr_in6);
|
|
||||||
for (i = 0; i < sizeof(all1_sa.sin6_addr); i++)
|
|
||||||
all1_sa.sin6_addr.s6_addr[i] = 0xff;
|
|
||||||
|
|
||||||
/* initialization of the default router list */
|
/* initialization of the default router list */
|
||||||
TAILQ_INIT(&V_nd_defrouter);
|
TAILQ_INIT(&V_nd_defrouter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user