Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dxfrm.py386 def _UpdatePolicyInfo(self, msg, policy, tmpl, mark, xfrm_if_id): argument
395 self.SendXfrmNlRequest(msg, policy, nlattrs)
397 def AddPolicyInfo(self, policy, tmpl, mark, xfrm_if_id=None): argument
408 self._UpdatePolicyInfo(XFRM_MSG_NEWPOLICY, policy, tmpl, mark, xfrm_if_id)
410 def UpdatePolicyInfo(self, policy, tmpl, mark, xfrm_if_id): argument
422 self._UpdatePolicyInfo(XFRM_MSG_UPDPOLICY, policy, tmpl, mark, xfrm_if_id)
694 policy = UserPolicy(direction, selector)
696 self.AddPolicyInfo(policy, tmpl, mark, xfrm_if_id=xfrm_if_id)
Dxfrm_test.py613 policy = xfrm.UserPolicy(xfrm.XFRM_POLICY_OUT, sel)
616 self.xfrm.AddPolicyInfo(policy, tmpl, mark1)
618 self.xfrm.AddPolicyInfo(policy, tmpl, mark2)
635 policy = xfrm.UserPolicy(xfrm.XFRM_POLICY_OUT, sel)
646 self.xfrm.UpdatePolicyInfo(policy, tmpl1, mark, None)
651 self.xfrm.AddPolicyInfo(policy, tmpl2, mark, None)
653 self.xfrm.UpdatePolicyInfo(policy, tmpl2, mark, None)
670 policy = xfrm.UserPolicy(xfrm.XFRM_POLICY_OUT, sel)
671 self.xfrm.AddPolicyInfo(policy, tmpl, mark)
672 policy = xfrm.UserPolicy(xfrm.XFRM_POLICY_IN, sel)
[all …]
Dxfrm_base.py72 policy = xfrm.UserPolicy(direction, selector)
76 opt_data = policy.Pack() + template.Pack()
Dxfrm_tunnel_test.py418 policy = xfrm.UserPolicy(xfrm.XFRM_POLICY_OUT, sel)
421 self.xfrm.UpdatePolicyInfo(policy, tmpl, xfrm.ExactMatchMark(self.okey),
497 policy = xfrm.UserPolicy(xfrm.XFRM_POLICY_OUT, sel)
500 self.xfrm.UpdatePolicyInfo(policy, tmpl, None, self.xfrm_if_id)