Lines Matching refs:ifname
174 def GetInterfaceIndex(ifname): argument
176 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0)
181 def SetInterfaceHWAddr(ifname, hwaddr): argument
187 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr)
191 def SetInterfaceState(ifname, up): argument
193 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0)
200 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags)
204 def SetInterfaceUp(ifname): argument
205 return SetInterfaceState(ifname, True)
208 def SetInterfaceDown(ifname): argument
209 return SetInterfaceState(ifname, False)
234 def GetLinkAddress(ifname, linklocal): argument
238 if address[5] == ifname: