Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 2 of 2) sorted by relevance

/kernel/tests/net/test/
Dnet_test.py210 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
[all …]
Dping6_test.py259 self.ifname = self.GetInterfaceName(self.netid)
261 self.lladdr = net_test.GetLinkAddress(self.ifname, True)
262 self.globaladdr = net_test.GetLinkAddress(self.ifname, False)
592 expected = self.lladdr + "%" + self.ifname