Home
last modified time | relevance | path

Searched refs:is_add (Results 1 – 5 of 5) sorted by relevance

/kernel/tests/net/test/
Diproute.py373 def _Rule(self, version, is_add, rule_type, table, match_nlattr, priority): argument
400 command = RTM_NEWRULE if is_add else RTM_DELRULE
417 def FwmarkRule(self, version, is_add, fwmark, fwmask, table, priority): argument
420 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
422 def IifRule(self, version, is_add, iif, table, priority): argument
424 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
426 def OifRule(self, version, is_add, oif, table, priority): argument
428 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
430 def UidRangeRule(self, version, is_add, start, end, table, priority): argument
434 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
[all …]
Dmultinetwork_base.py262 def _RunSetupCommands(cls, netid, is_add): argument
273 cls.iproute.UidRangeRule(version, is_add, start, end, table,
275 cls.iproute.OifRule(version, is_add, iface, table, cls.PRIORITY_OIF)
276 cls.iproute.FwmarkRule(version, is_add, netid, cls.NETID_FWMASK, table,
293 if is_add:
321 def _SetInboundMarking(cls, netid, iface, is_add): argument
324 add_del = "-A" if is_add else "-D"
332 def SetInboundMarks(cls, is_add): argument
334 cls._SetInboundMarking(netid, cls.GetInterfaceName(netid), is_add)
340 is_add = table is not None
[all …]
Dxfrm_tunnel_test.py654 def _SetupTunnelNetwork(cls, tunnel, is_add): argument
667 if is_add:
685 cls.iproute.UidRangeRule(version, is_add, start, end, table,
687 cls.iproute.OifRule(version, is_add, tunnel.iface, table, cls.PRIORITY_OIF)
688 cls.iproute.FwmarkRule(version, is_add, tunnel.netid, cls.NETID_FWMASK,
695 if is_add:
Danycast_test.py69 def AnycastSetsockopt(self, s, is_add, netid, addr): argument
73 option = IPV6_JOIN_ANYCAST if is_add else IPV6_LEAVE_ANYCAST
Dqtaguid_test.py60 def SetIptablesRule(self, version, is_add, is_gid, my_id, inverted): argument
61 add_del = "-A" if is_add else "-D"