Changeset View
Changeset View
Standalone View
Standalone View
sbin/atm/atmconfig/natm.c
Show All 12 Lines | |||||
if (rtm->rtm_type == RTM_GET) { | if (rtm->rtm_type == RTM_GET) { | ||||
if ((rtm->rtm_flags & (RTF_UP | RTF_HOST | | if ((rtm->rtm_flags & (RTF_UP | RTF_HOST | | ||||
RTF_STATIC)) == (RTF_UP | RTF_HOST | RTF_STATIC) && | RTF_STATIC)) == (RTF_UP | RTF_HOST | RTF_STATIC) && | ||||
(rtm->rtm_addrs & (RTA_DST | RTA_GATEWAY | | (rtm->rtm_addrs & (RTA_DST | RTA_GATEWAY | | ||||
RTA_IFP)) == (RTA_DST | RTA_GATEWAY | RTA_IFP)) | RTA_IFP)) == (RTA_DST | RTA_GATEWAY | RTA_IFP)) | ||||
store_route(rtm); | store_route(rtm); | ||||
} | } | ||||
} | } | ||||
free(buf); | |||||
} | } | ||||
static u_long | static u_long | ||||
parse_num(const char *arg, const char *name, u_long limit) | parse_num(const char *arg, const char *name, u_long limit) | ||||
{ | { | ||||
u_long res; | u_long res; | ||||
char *end; | char *end; | ||||
Show All 12 Lines |