Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dsrcaddr_selection_test.py59 def SetIPv6Sysctl(self, ifname, sysctl, value): argument
60 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/%s" % (ifname, sysctl), value)
62 def SetDAD(self, ifname, value): argument
63 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/accept_dad" % ifname, value)
64 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/dad_transmits" % ifname, value)
66 def SetOptimisticDAD(self, ifname, value): argument
67 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/optimistic_dad" % ifname, value)
69 def SetUseTempaddrs(self, ifname, value): argument
70 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/use_tempaddr" % ifname, value)
72 def SetUseOptimistic(self, ifname, value): argument
[all …]
Dnet_test.py209 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
[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
Dxfrm_tunnel_test.py283 def _QuietDeleteLink(self, ifname): argument
285 self.iproute.DeleteLink(ifname)
566 def _SwapInterfaceAddress(self, ifname, old_addr, new_addr): argument
575 ifindex = net_test.GetInterfaceIndex(ifname)