Lines Matching refs:mark
331 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
441 if mark is not None:
442 nlattrs.append((XFRMA_MARK, mark))
494 encap, mark, output_mark, is_update=False, xfrm_if_id=None): argument
533 if mark is not None:
534 nlattrs += self._NlAttr(XFRMA_MARK, mark.Pack())
572 def DeleteSaInfo(self, dst, spi, proto, mark=None, xfrm_if_id=None): argument
586 if mark is not None:
587 nlattrs.append((XFRMA_MARK, mark))
646 auth_trunc, mark, output_mark, xfrm_if_id, match_method): argument
704 self.AddPolicyInfo(policy, tmpl, mark, xfrm_if_id=xfrm_if_id)
706 def DeleteTunnel(self, direction, selector, dst, spi, mark, xfrm_if_id): argument
707 if mark is not None:
708 mark = ExactMatchMark(mark)
710 self.DeleteSaInfo(dst, spi, IPPROTO_ESP, mark, xfrm_if_id)
716 self.DeletePolicyInfo(selector, direction, mark, xfrm_if_id)