Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/route.h
Show First 20 Lines • Show All 422 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#define RT_VALIDATE(ro, cookiep, fibnum) do { \ | #define RT_VALIDATE(ro, cookiep, fibnum) do { \ | ||||
rt_gen_t cookie = RT_GEN(fibnum, (ro)->ro_dst.sa_family); \ | rt_gen_t cookie = RT_GEN(fibnum, (ro)->ro_dst.sa_family); \ | ||||
if (*(cookiep) != cookie) { \ | if (*(cookiep) != cookie) { \ | ||||
if ((ro)->ro_rt != NULL) { \ | if ((ro)->ro_rt != NULL) { \ | ||||
RTFREE((ro)->ro_rt); \ | RTFREE((ro)->ro_rt); \ | ||||
(ro)->ro_rt = NULL; \ | (ro)->ro_rt = NULL; \ | ||||
} \ | } \ | ||||
if ((ro)->ro_lle != NULL) { \ | |||||
LLE_FREE((ro)->ro_lle); \ | |||||
(ro)->ro_lle = NULL; \ | |||||
} \ | |||||
*(cookiep) = cookie; \ | *(cookiep) = cookie; \ | ||||
} \ | } \ | ||||
} while (0) | } while (0) | ||||
struct ifmultiaddr; | struct ifmultiaddr; | ||||
struct rib_head; | struct rib_head; | ||||
void rt_ieee80211msg(struct ifnet *, int, void *, size_t); | void rt_ieee80211msg(struct ifnet *, int, void *, size_t); | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |