Home
last modified time | relevance | path

Searched refs:mark (Results 1 – 6 of 6) sorted by relevance

/kernel/tests/net/test/
Dxfrm.py331 def ExactMatchMark(mark): argument
333 return XfrmMark((mark, 0xffffffff))
394 def _UpdatePolicyInfo(self, msg, policy, tmpl, mark, xfrm_if_id): argument
399 if mark is not None:
400 nlattrs.append((XFRMA_MARK, mark))
405 def AddPolicyInfo(self, policy, tmpl, mark, xfrm_if_id=None): argument
416 self._UpdatePolicyInfo(XFRM_MSG_NEWPOLICY, policy, tmpl, mark, xfrm_if_id)
418 def UpdatePolicyInfo(self, policy, tmpl, mark, xfrm_if_id): argument
430 self._UpdatePolicyInfo(XFRM_MSG_UPDPOLICY, policy, tmpl, mark, xfrm_if_id)
432 def DeletePolicyInfo(self, selector, direction, mark, xfrm_if_id=None): argument
[all …]
Dxfrm_test.py610 mark1 = xfrm.XfrmMark(mark=0xf00, mask=xfrm_base.MARK_MASK_ALL)
611 mark2 = xfrm.XfrmMark(mark=0xf00d, mask=xfrm_base.MARK_MASK_ALL)
636 mark = xfrm.XfrmMark(mark=0xf00, mask=xfrm_base.MARK_MASK_ALL)
646 self.xfrm.UpdatePolicyInfo(policy, tmpl1, mark, None)
651 self.xfrm.AddPolicyInfo(policy, tmpl2, mark, None)
653 self.xfrm.UpdatePolicyInfo(policy, tmpl2, mark, None)
669 mark = xfrm.XfrmMark(mark=0xf00, mask=xfrm_base.MARK_MASK_ALL)
671 self.xfrm.AddPolicyInfo(policy, tmpl, mark)
673 self.xfrm.AddPolicyInfo(policy, tmpl, mark)
683 def _CheckTunnelModeOutputMark(self, version, tunsrc, mark, expected_netid): argument
[all …]
Dxfrm_algorithm_test.py118 mark=None,
262 mark=None,
275 mark=None,
288 mark=None,
301 mark=None,
Dsock_diag_test.py129 def assertMarkIs(self, mark, attrs): argument
130 self.assertEqual(mark, attrs.get("INET_DIAG_MARK", None))
148 mark = s.getsockopt(SOL_SOCKET, net_test.SO_MARK)
149 self.assertMarkIs(mark, attrs)
1043 def FilterEstablishedSockets(self, mark, mask): argument
1044 instructions = [(sock_diag.INET_DIAG_BC_MARK_COND, 1, 2, (mark, mask))]
1113 mark = random.randrange(0, 2**31 - 1)
1114 s.setsockopt(SOL_SOCKET, net_test.SO_MARK, mark)
1115 return mark
1117 def assertSocketMarkIs(self, s, mark): argument
[all …]
Dsock_diag.py234 mark, mask = arg
236 mark, mask = arg, 0xffffffff
237 arg = InetDiagMarkcond((mark, mask)).Pack()
Dmultinetwork_base.py597 "default", 0, nexthop=None, dev=None, mark=None,