Lines Matching refs:ifname
209 def GetInterfaceIndex(ifname): argument
211 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0)
216 def SetInterfaceHWAddr(ifname, hwaddr): argument
222 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr)
226 def SetInterfaceState(ifname, up): argument
228 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0)
235 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags)
239 def SetInterfaceUp(ifname): argument
240 return SetInterfaceState(ifname, True)
243 def SetInterfaceDown(ifname): argument
244 return SetInterfaceState(ifname, False)
273 def GetLinkAddress(ifname, linklocal): argument
277 if address[5] == ifname: