Lines Matching refs:ifindex
34 ifindex = socket.if_nametoindex(ifname)
35 addr_tuple = (ip, port, 0, ifindex)
37 ifindex = socket.if_nametoindex(ifname)
38 mreq = socket.inet_pton(socket.AF_INET6, ip) + struct.pack("I", ifindex)
41 addr_tuple = ("::", port, 0, ifindex)
422 ifindex = socket.if_nametoindex(os_ifname)
423 optval = struct.pack("I", ifindex)
466 ifindex = socket.if_nametoindex(os_ifname)
469 addr_tuple = (ip, self.DEFAULT_PORT, 0, ifindex)
473 ifindex = socket.if_nametoindex("lo0")
514 ifindex = socket.if_nametoindex(os_ifname)
517 addr_tuple = (ip, self.DEFAULT_PORT, 0, ifindex)
521 ifindex = socket.if_nametoindex("lo0")