Lines Matching defs:rtm
85 #define NL_EVENT_RTM_NAME(rtm) case rtm: return #rtm;
317 struct rtmsg *rtm = (struct rtmsg *) NLMSG_DATA(nh);
318 if (!checkRtNetlinkLength(nh, sizeof(*rtm)))
322 (rtm->rtm_protocol != RTPROT_KERNEL &&
323 rtm->rtm_protocol != RTPROT_RA) ||
325 (rtm->rtm_scope != RT_SCOPE_UNIVERSE) ||
326 (rtm->rtm_type != RTN_UNICAST) ||
328 (rtm->rtm_src_len != 0) ||
330 (rtm->rtm_flags & RTM_F_CLONED)) {
334 int family = rtm->rtm_family;
335 int prefixLength = rtm->rtm_dst_len;
344 for (rta = RTM_RTA(rtm); RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) {