Lines Matching refs:base_hdr

53             ifname = socket.if_indextoname(rx_msg.base_hdr.ifa_index)
54 family = rx_msg.base_hdr.ifa_family
55 scope = rx_msg.base_hdr.ifa_scope
77 msg.base_hdr.ifa_index = socket.if_nametoindex(epair_ifname)
82 ifname = socket.if_indextoname(rx_msg.base_hdr.ifa_index)
83 family = rx_msg.base_hdr.ifa_family
105 ifname = socket.if_indextoname(rx_msg.base_hdr.ifa_index)
106 family = rx_msg.base_hdr.ifa_family
116 msg.base_hdr.ifa_family = family
117 msg.base_hdr.ifa_index = socket.if_nametoindex(epair_ifname)
122 assert family == rx_msg.base_hdr.ifa_family
123 assert epair_ifname == socket.if_indextoname(rx_msg.base_hdr.ifa_index)
134 assert msg.base_hdr.ifa_prefixlen == 24
136 assert msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
149 if ret[0].base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value:
156 assert msg.base_hdr.ifa_prefixlen == 64
158 assert msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
169 assert msg.base_hdr.ifa_prefixlen == 64
171 assert msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_LINK.value
208 msg.base_hdr.ifa_family = self.get_family_from_ip(ifa.ip)
209 msg.base_hdr.ifa_index = iface.ifindex
210 msg.base_hdr.ifa_prefixlen = ifa.network.prefixlen
216 msg.base_hdr.ifa_family = family
217 msg.base_hdr.ifa_index = ifindex
260 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
261 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
295 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
296 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
316 assert rx_msg_gu.base_hdr.ifa_prefixlen == ifa.network.prefixlen
317 assert rx_msg_gu.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
340 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
341 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
368 assert rx_msg_gu.base_hdr.ifa_prefixlen == ifa.network.prefixlen
369 assert rx_msg_gu.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
464 msg.base_hdr.ifa_index = 0
517 msg.base_hdr.ifa_family = self.get_family_from_ip(ifa.ip)
518 msg.base_hdr.ifa_index = iface.ifindex
519 msg.base_hdr.ifa_prefixlen = ifa.network.prefixlen
561 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
562 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
605 assert rx_msg_gu.base_hdr.ifa_prefixlen == ifa.network.prefixlen
606 assert rx_msg_gu.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
644 msg.base_hdr.ifa_family = self.get_family_from_ip(ifa.ip)
645 msg.base_hdr.ifa_index = iface.ifindex
646 msg.base_hdr.ifa_prefixlen = ifa.network.prefixlen
687 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
688 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
715 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
716 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
750 msg.base_hdr.ifa_family = self.get_family_from_ip(ifa.ip)
751 msg.base_hdr.ifa_index = iface.ifindex
752 msg.base_hdr.ifa_prefixlen = ifa.network.prefixlen