Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/nd6.c
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
static void nd6_free(struct llentry **, int); | static void nd6_free(struct llentry **, int); | ||||
static void nd6_free_redirect(const struct llentry *); | static void nd6_free_redirect(const struct llentry *); | ||||
static void nd6_llinfo_timer(void *); | static void nd6_llinfo_timer(void *); | ||||
static void nd6_llinfo_settimer_locked(struct llentry *, long); | static void nd6_llinfo_settimer_locked(struct llentry *, long); | ||||
static void clear_llinfo_pqueue(struct llentry *); | static void clear_llinfo_pqueue(struct llentry *); | ||||
static void nd6_rtrequest(int, struct rtentry *, struct rt_addrinfo *); | static void nd6_rtrequest(int, struct rtentry *, struct rt_addrinfo *); | ||||
static int nd6_resolve_slow(struct ifnet *, int, struct mbuf *, | static int nd6_resolve_slow(struct ifnet *, int, struct mbuf *, | ||||
const struct sockaddr_in6 *, u_char *, uint32_t *, struct llentry **); | const struct sockaddr_in6 *, u_char *, uint32_t *, struct llentry **); | ||||
static int nd6_need_cache(struct ifnet *); | |||||
VNET_DEFINE_STATIC(struct callout, nd6_slowtimo_ch); | VNET_DEFINE_STATIC(struct callout, nd6_slowtimo_ch); | ||||
#define V_nd6_slowtimo_ch VNET(nd6_slowtimo_ch) | #define V_nd6_slowtimo_ch VNET(nd6_slowtimo_ch) | ||||
VNET_DEFINE(struct callout, nd6_timer_ch); | VNET_DEFINE(struct callout, nd6_timer_ch); | ||||
#define V_nd6_timer_ch VNET(nd6_timer_ch) | #define V_nd6_timer_ch VNET(nd6_timer_ch) | ||||
static void | static void | ||||
▲ Show 20 Lines • Show All 2,373 Lines • ▼ Show 20 Lines | nd6_flush_holdchain(struct ifnet *ifp, struct mbuf *chain, | ||||
/* | /* | ||||
* XXX | * XXX | ||||
* note that intermediate errors are blindly ignored | * note that intermediate errors are blindly ignored | ||||
*/ | */ | ||||
return (error); | return (error); | ||||
} | } | ||||
static int | int | ||||
nd6_need_cache(struct ifnet *ifp) | nd6_need_cache(struct ifnet *ifp) | ||||
{ | { | ||||
/* | /* | ||||
* XXX: we currently do not make neighbor cache on any interface | * XXX: we currently do not make neighbor cache on any interface | ||||
* other than Ethernet and GIF. | * other than Ethernet and GIF. | ||||
* | * | ||||
* RFC2893 says: | * RFC2893 says: | ||||
* - unidirectional tunnels needs no ND | * - unidirectional tunnels needs no ND | ||||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |