Lines Matching refs:base_hdr

50             ifname = socket.if_indextoname(rx_msg.base_hdr.ifa_index)
51 family = rx_msg.base_hdr.ifa_family
67 msg.base_hdr.ifa_index = socket.if_nametoindex(epair_ifname)
72 ifname = socket.if_indextoname(rx_msg.base_hdr.ifa_index)
73 family = rx_msg.base_hdr.ifa_family
95 ifname = socket.if_indextoname(rx_msg.base_hdr.ifa_index)
96 family = rx_msg.base_hdr.ifa_family
106 msg.base_hdr.ifa_family = family
107 msg.base_hdr.ifa_index = socket.if_nametoindex(epair_ifname)
112 assert family == rx_msg.base_hdr.ifa_family
113 assert epair_ifname == socket.if_indextoname(rx_msg.base_hdr.ifa_index)
124 assert msg.base_hdr.ifa_prefixlen == 24
126 assert msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
139 if ret[0].base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value:
146 assert msg.base_hdr.ifa_prefixlen == 64
148 assert msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
159 assert msg.base_hdr.ifa_prefixlen == 64
161 assert msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_LINK.value
198 msg.base_hdr.ifa_family = self.get_family_from_ip(ifa.ip)
199 msg.base_hdr.ifa_index = iface.ifindex
200 msg.base_hdr.ifa_prefixlen = ifa.network.prefixlen
206 msg.base_hdr.ifa_family = family
207 msg.base_hdr.ifa_index = ifindex
250 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
251 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
285 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
286 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
306 assert rx_msg_gu.base_hdr.ifa_prefixlen == ifa.network.prefixlen
307 assert rx_msg_gu.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
330 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
331 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
358 assert rx_msg_gu.base_hdr.ifa_prefixlen == ifa.network.prefixlen
359 assert rx_msg_gu.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
454 msg.base_hdr.ifa_index = 0
507 msg.base_hdr.ifa_family = self.get_family_from_ip(ifa.ip)
508 msg.base_hdr.ifa_index = iface.ifindex
509 msg.base_hdr.ifa_prefixlen = ifa.network.prefixlen
551 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
552 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
595 assert rx_msg_gu.base_hdr.ifa_prefixlen == ifa.network.prefixlen
596 assert rx_msg_gu.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
634 msg.base_hdr.ifa_family = self.get_family_from_ip(ifa.ip)
635 msg.base_hdr.ifa_index = iface.ifindex
636 msg.base_hdr.ifa_prefixlen = ifa.network.prefixlen
677 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
678 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
705 assert rx_msg.base_hdr.ifa_prefixlen == ifa.network.prefixlen
706 assert rx_msg.base_hdr.ifa_scope == RtScope.RT_SCOPE_UNIVERSE.value
740 msg.base_hdr.ifa_family = self.get_family_from_ip(ifa.ip)
741 msg.base_hdr.ifa_index = iface.ifindex
742 msg.base_hdr.ifa_prefixlen = ifa.network.prefixlen