Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dxfrm.py394 def _UpdatePolicyInfo(self, msg, policy, tmpl, mark, xfrm_if_id): argument
403 self.SendXfrmNlRequest(msg, policy, nlattrs)
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)
702 policy = UserPolicy(direction, selector)
704 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 …]