Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/ip_fw_table_algo.c
Show First 20 Lines • Show All 3,908 Lines • ▼ Show 20 Lines | |||||
ta_dump_kfib_tentry_int(int family, const struct rtentry *rt, | ta_dump_kfib_tentry_int(int family, const struct rtentry *rt, | ||||
ipfw_obj_tentry *tent) | ipfw_obj_tentry *tent) | ||||
{ | { | ||||
uint32_t scopeid; | uint32_t scopeid; | ||||
int plen; | int plen; | ||||
#ifdef INET | #ifdef INET | ||||
if (family == AF_INET) { | if (family == AF_INET) { | ||||
/* FIXME rt is IPv6 nexthop ? */ | |||||
melifaro: IIRC we don't care about the nexthop here at all | |||||
rt_get_inet_prefix_plen(rt, &tent->k.addr, &plen, &scopeid); | rt_get_inet_prefix_plen(rt, &tent->k.addr, &plen, &scopeid); | ||||
tent->masklen = plen; | tent->masklen = plen; | ||||
tent->subtype = AF_INET; | tent->subtype = AF_INET; | ||||
tent->v.kidx = 0; | tent->v.kidx = 0; | ||||
} | } | ||||
#endif | #endif | ||||
#ifdef INET6 | #ifdef INET6 | ||||
if (family == AF_INET6) { | if (family == AF_INET6) { | ||||
/* FIXME rt is IPv4 nexthop ? */ | |||||
rt_get_inet6_prefix_plen(rt, &tent->k.addr6, &plen, &scopeid); | rt_get_inet6_prefix_plen(rt, &tent->k.addr6, &plen, &scopeid); | ||||
tent->masklen = plen; | tent->masklen = plen; | ||||
tent->subtype = AF_INET6; | tent->subtype = AF_INET6; | ||||
tent->v.kidx = 0; | tent->v.kidx = 0; | ||||
} | } | ||||
#endif | #endif | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |
IIRC we don't care about the nexthop here at all