Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Diproute.py423 def _Rule(self, version, is_add, rule_type, table, match_nlattr, priority): argument
450 command = RTM_NEWRULE if is_add else RTM_DELRULE
467 def FwmarkRule(self, version, is_add, fwmark, fwmask, table, priority): argument
470 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
472 def IifRule(self, version, is_add, iif, table, priority): argument
474 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
476 def OifRule(self, version, is_add, oif, table, priority): argument
478 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
480 def UidRangeRule(self, version, is_add, start, end, table, priority): argument
484 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
[all …]
Dmultinetwork_base.py279 def _RunSetupCommands(cls, netid, is_add): argument
290 cls.iproute.UidRangeRule(version, is_add, start, end, table,
292 cls.iproute.OifRule(version, is_add, iface, table, cls.PRIORITY_OIF)
293 cls.iproute.FwmarkRule(version, is_add, netid, cls.NETID_FWMASK, table,
310 if is_add:
338 def _SetInboundMarking(cls, netid, iface, is_add): argument
341 add_del = "-A" if is_add else "-D"
349 def SetInboundMarks(cls, is_add): argument
351 cls._SetInboundMarking(netid, cls.GetInterfaceName(netid), is_add)
357 is_add = table is not None
[all …]
Danycast_test.py70 def AnycastSetsockopt(self, s, is_add, netid, addr): argument
74 option = IPV6_JOIN_ANYCAST if is_add else IPV6_LEAVE_ANYCAST
Dxfrm_tunnel_test.py661 def _SetupTunnelNetwork(cls, tunnel, is_add): argument
674 if is_add:
692 cls.iproute.UidRangeRule(version, is_add, start, end, table,
694 cls.iproute.OifRule(version, is_add, tunnel.iface, table, cls.PRIORITY_OIF)
695 cls.iproute.FwmarkRule(version, is_add, tunnel.netid, cls.NETID_FWMASK,
702 if is_add: