Lines Matching defs:ifindex
22 def _users_for(rtnl: RtnlAddrFamily, family: int, grp: bytes, ifindex: int):
23 """Return mc-users for grp on ifindex, or 0 if absent."""
27 if addr['multicast'] == grp and addr['ifa-index'] == ifindex]
162 peer_idx = ip("link show dummy3", json=True, ns=peer)[0]['ifindex']
170 # dummy1 in this netns can have the same ifindex as dummy3
269 def _send_ra(sock, ifindex, lifetime, rio=None, pio=None):
285 sock.sendto(ra, ('ff02::1', 0, 0, ifindex))
297 def _ra_advertise_routes(rtnl, sock, ifindex, want, **ra_opts):
308 _send_ra(sock, ifindex, **ra_opts)
345 sock, ifindex = _ra_router_sock(ns_r, "veth1")
347 seen = _ra_advertise_routes(rtnl, sock, ifindex, routes,
355 _send_ra(sock, ifindex, 0, rio=('2001:db8:5::', 64, 0),