Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/in_rmx.c
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | |||||
* plug back in. | * plug back in. | ||||
*/ | */ | ||||
struct in_ifadown_arg { | struct in_ifadown_arg { | ||||
struct ifaddr *ifa; | struct ifaddr *ifa; | ||||
int del; | int del; | ||||
}; | }; | ||||
static int | static int | ||||
in_ifadownkill(const struct rtentry *rt, void *xap) | in_ifadownkill(const struct rtentry *rt, const struct nhop_object *nh, | ||||
void *xap) | |||||
{ | { | ||||
struct in_ifadown_arg *ap = xap; | struct in_ifadown_arg *ap = xap; | ||||
if (rt->rt_ifa != ap->ifa) | if (nh->nh_ifa != ap->ifa) | ||||
return (0); | return (0); | ||||
if ((rt->rt_flags & RTF_STATIC) != 0 && ap->del == 0) | if ((nhop_get_rtflags(nh) & RTF_STATIC) != 0 && ap->del == 0) | ||||
return (0); | return (0); | ||||
return (1); | return (1); | ||||
} | } | ||||
void | void | ||||
in_ifadown(struct ifaddr *ifa, int delete) | in_ifadown(struct ifaddr *ifa, int delete) | ||||
{ | { | ||||
Show All 23 Lines |