Searched refs:ifname (Results 1 – 4 of 4) sorted by relevance
/kernel/tests/net/test/ |
D | srcaddr_selection_test.py | 59 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 …]
|
D | net_test.py | 270 def GetInterfaceIndex(ifname): argument 272 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname.encode(), 0) 277 def SetInterfaceHWAddr(ifname, hwaddr): argument 283 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname.encode(), scapy.ARPHDR_ETHER, 288 def SetInterfaceState(ifname, up): argument 289 ifname_bytes = ifname.encode() 302 def SetInterfaceUp(ifname): argument 303 return SetInterfaceState(ifname, True) 306 def SetInterfaceDown(ifname): argument 307 return SetInterfaceState(ifname, False) [all …]
|
D | ping6_test.py | 258 self.ifname = self.GetInterfaceName(self.netid) 260 self.lladdr = net_test.GetLinkAddress(self.ifname, True) 261 self.globaladdr = net_test.GetLinkAddress(self.ifname, False) 629 expected += "%" + self.ifname
|
D | xfrm_tunnel_test.py | 329 def _QuietDeleteLink(self, ifname): argument 331 self.iproute.DeleteLink(ifname) 631 def _SwapInterfaceAddress(self, ifname, old_addr, new_addr): argument 640 ifindex = net_test.GetInterfaceIndex(ifname)
|