Home
last modified time | relevance | path

Searched refs:value (Results 1 – 11 of 11) sorted by relevance

/kernel/tests/net/test/
Dcstruct.py167 for index, value in enumerate(values):
168 if isinstance(value, str) and index in self._nested:
169 values[index] = self._nested[index](value)
214 def __setattr__(self, name, value): argument
217 self._values[self._FieldIndex(name)] = value
238 def _MaybePackStruct(value): argument
239 if hasattr(value, "__metaclass__"):# and value.__metaclass__ == Meta:
240 return value.Pack()
242 return value
249 def FieldDesc(index, name, value): argument
[all …]
Dbpf_test.py119 next_key = GetNextKey(map_fd, key).value
120 value = LookupMap(map_fd, next_key)
121 print(repr(next_key) + " : " + repr(value.value)) # pylint: disable=superfluous-parens
240 key, value = 1, 1
243 UpdateMap(self.map_fd, key, value)
244 self.assertEqual(value, LookupMap(self.map_fd, key).value)
248 def CheckAllMapEntry(self, nonexistent_key, total_entries, value): argument
257 key = result.value
259 self.assertEqual(value, LookupMap(self.map_fd, key).value)
265 value = 1024
[all …]
Dpf_key.py142 def _GetConstantName(value, prefix): argument
151 name.isupper() and getattr(thismodule, name) == value):
153 return value
156 def _GetMultiConstantName(value, prefixes): argument
158 name = _GetConstantName(value, prefix)
Dresilient_rs_test.py129 for tunable, value in PROC_SETTINGS:
130 self.SetSysctl(self._PROC_NET_TUNABLE % (iface, tunable), value)
Dmultinetwork_base.py315 def SetMarkReflectSysctls(cls, value): argument
317 cls.SetSysctl(IPV4_MARK_REFLECT_SYSCTL, value)
318 cls.SetSysctl(IPV6_MARK_REFLECT_SYSCTL, value)
352 def SetSysctl(cls, sysctl, value): argument
358 open(sysctl, "w").write(str(value) + "\n")
361 def SetIPv6SysctlOnAllIfaces(cls, sysctl, value): argument
365 cls.SetSysctl(name, value)
369 for sysctl, value in cls.saved_sysctls.items():
371 open(sysctl, "w").write(value)
Dtcp_repair_test.py270 self.assertEqual(buf.value, 0)
275 self.assertEqual(buf.value, len(TEST_RECV_PAYLOAD))
284 self.assertEqual(buf.value, 0)
291 self.assertEqual(buf.value, len(TEST_SEND_PAYLOAD))
300 self.assertEqual(buf.value, len(TEST_SEND_PAYLOAD))
307 self.assertEqual(buf.value, 0)
Dneighbour_test.py111 def SetUnicastSolicit(self, proto, iface, value): argument
113 "/proc/sys/net/%s/neigh/%s/ucast_solicit" % (proto, iface), value)
149 def assertNeighbourAttr(self, addr, name, value): argument
150 self.assertEqual(value, self.GetNdEntry(addr)[1][name])
Dbpf.py216 def UpdateMap(map_fd, key, value, flags=0): argument
217 c_value = ctypes.c_uint32(value)
Dcsocket.py157 data = struct.pack("=I", data.value)
348 alen = alen.value
Dxfrm.py344 def _GetConstantName(self, value, prefix): argument
345 return super(Xfrm, self)._GetConstantName(__name__, value, prefix)
/kernel/configs/
DREADME.md34 value. The platform owner may also have a choice between several config
105 configuration value, either that kernel configuration value must already be