Lines Matching refs:ifname
210 def GetInterfaceIndex(ifname): argument
212 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0)
217 def SetInterfaceHWAddr(ifname, hwaddr): argument
223 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr)
227 def SetInterfaceState(ifname, up): argument
229 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0)
236 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags)
240 def SetInterfaceUp(ifname): argument
241 return SetInterfaceState(ifname, True)
244 def SetInterfaceDown(ifname): argument
245 return SetInterfaceState(ifname, False)
274 def GetLinkAddress(ifname, linklocal): argument
278 if address[5] == ifname: