Searched refs:rtm (Results 1 – 2 of 2) sorted by relevance
175 #define NL_EVENT_RTM_NAME(rtm) case rtm: return #rtm; in rtMessageName() argument441 struct rtmsg *rtm = (struct rtmsg *) NLMSG_DATA(nh); in parseRtMessage() local442 if (!checkRtNetlinkLength(nh, sizeof(*rtm))) in parseRtMessage()446 (rtm->rtm_protocol != RTPROT_KERNEL && in parseRtMessage()447 rtm->rtm_protocol != RTPROT_RA) || in parseRtMessage()449 (rtm->rtm_scope != RT_SCOPE_UNIVERSE) || in parseRtMessage()450 (rtm->rtm_type != RTN_UNICAST) || in parseRtMessage()452 (rtm->rtm_src_len != 0) || in parseRtMessage()454 (rtm->rtm_flags & RTM_F_CLONED)) { in parseRtMessage()458 int family = rtm->rtm_family; in parseRtMessage()[all …]
75 rtmsg rtm = { .rtm_family = static_cast<uint8_t>(family) }; in TEST_F() local78 { &rtm, sizeof(rtm) }, in TEST_F()