Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/in6.c
Show First 20 Lines • Show All 2,507 Lines • ▼ Show 20 Lines | |||||
void | void | ||||
in6_domifdetach(struct ifnet *ifp, void *aux) | in6_domifdetach(struct ifnet *ifp, void *aux) | ||||
{ | { | ||||
struct in6_ifextra *ext = (struct in6_ifextra *)aux; | struct in6_ifextra *ext = (struct in6_ifextra *)aux; | ||||
mld_domifdetach(ifp); | mld_domifdetach(ifp); | ||||
scope6_ifdetach(ext->scope6_id); | scope6_ifdetach(ext->scope6_id); | ||||
nd6_ifdetach(ifp, ext->nd_ifinfo); | |||||
lltable_free(ext->lltable); | lltable_free(ext->lltable); | ||||
nd6_ifdetach(ifp, ext->nd_ifinfo); | |||||
COUNTER_ARRAY_FREE(ext->in6_ifstat, | COUNTER_ARRAY_FREE(ext->in6_ifstat, | ||||
sizeof(struct in6_ifstat) / sizeof(uint64_t)); | sizeof(struct in6_ifstat) / sizeof(uint64_t)); | ||||
free(ext->in6_ifstat, M_IFADDR); | free(ext->in6_ifstat, M_IFADDR); | ||||
COUNTER_ARRAY_FREE(ext->icmp6_ifstat, | COUNTER_ARRAY_FREE(ext->icmp6_ifstat, | ||||
sizeof(struct icmp6_ifstat) / sizeof(uint64_t)); | sizeof(struct icmp6_ifstat) / sizeof(uint64_t)); | ||||
free(ext->icmp6_ifstat, M_IFADDR); | free(ext->icmp6_ifstat, M_IFADDR); | ||||
free(ext, M_IFADDR); | free(ext, M_IFADDR); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |