Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/routed/table.c
Show First 20 Lines • Show All 1,227 Lines • ▼ Show 20 Lines | if (m.r.rtm.rtm_type == RTM_OIFINFO) | ||||
continue; /* ignore compat message */ | continue; /* ignore compat message */ | ||||
#endif | #endif | ||||
strlcpy(str, rtm_type_name(m.r.rtm.rtm_type), sizeof(str)); | strlcpy(str, rtm_type_name(m.r.rtm.rtm_type), sizeof(str)); | ||||
strp = &str[strlen(str)]; | strp = &str[strlen(str)]; | ||||
if (m.r.rtm.rtm_type <= RTM_CHANGE) | if (m.r.rtm.rtm_type <= RTM_CHANGE) | ||||
strp += sprintf(strp," from pid %d",m.r.rtm.rtm_pid); | strp += sprintf(strp," from pid %d",m.r.rtm.rtm_pid); | ||||
/* | |||||
* Only messages that use the struct rt_msghdr format are | |||||
* allowed beyond this point. | |||||
*/ | |||||
if (m.r.rtm.rtm_type > RTM_RESOLVE) { | |||||
trace_act("ignore %s", str); | |||||
continue; | |||||
} | |||||
rt_xaddrs(&info, m.r.addrs, &m.r.addrs[RTAX_MAX], | rt_xaddrs(&info, m.r.addrs, &m.r.addrs[RTAX_MAX], | ||||
m.r.rtm.rtm_addrs); | m.r.rtm.rtm_addrs); | ||||
if (INFO_DST(&info) == 0) { | if (INFO_DST(&info) == 0) { | ||||
trace_act("ignore %s without dst", str); | trace_act("ignore %s without dst", str); | ||||
continue; | continue; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 912 Lines • Show Last 20 Lines |