Searched refs:sysctl (Results 1 – 2 of 2) sorted by relevance
/kernel/tests/net/test/ |
D | multinetwork_base.py | 348 def GetSysctl(cls, sysctl): argument 349 return open(sysctl, "r").read() 352 def SetSysctl(cls, sysctl, value): argument 356 if sysctl not in cls.saved_sysctls: 357 cls.saved_sysctls[sysctl] = cls.GetSysctl(sysctl) 358 open(sysctl, "w").write(str(value) + "\n") 361 def SetIPv6SysctlOnAllIfaces(cls, sysctl, value): argument 364 name = "/proc/sys/net/ipv6/conf/%s/%s" % (iface, sysctl) 369 for sysctl, value in cls.saved_sysctls.iteritems(): 371 open(sysctl, "w").write(value)
|
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)
|