Lines Matching refs:nlattrs
396 nlattrs = []
398 nlattrs.append((XFRMA_TMPL, tmpl))
400 nlattrs.append((XFRMA_MARK, mark))
402 nlattrs.append((XFRMA_IF_ID, struct.pack("=I", xfrm_if_id)))
403 self.SendXfrmNlRequest(msg, policy, nlattrs)
440 nlattrs = []
442 nlattrs.append((XFRMA_MARK, mark))
444 nlattrs.append((XFRMA_IF_ID, struct.pack("=I", xfrm_if_id)))
447 nlattrs)
450 def SendXfrmNlRequest(self, msg_type, req, nlattrs=None, argument
463 if nlattrs is None:
464 nlattrs = []
465 for attr_type, attr_msg in nlattrs:
519 nlattrs = ""
522 nlattrs += self._NlAttr(XFRMA_ALG_CRYPT, enc.Pack() + key)
526 nlattrs += self._NlAttr(XFRMA_ALG_AUTH_TRUNC, auth.Pack() + key)
530 nlattrs += self._NlAttr(XFRMA_ALG_AEAD, aead_alg.Pack() + key)
534 nlattrs += self._NlAttr(XFRMA_MARK, mark.Pack())
536 nlattrs += self._NlAttr(XFRMA_ENCAP, encap.Pack())
538 nlattrs += self._NlAttrU32(XFRMA_OUTPUT_MARK, output_mark)
540 nlattrs += self._NlAttrU32(XFRMA_IF_ID, xfrm_if_id)
567 msg = sa.Pack() + nlattrs
585 nlattrs = []
587 nlattrs.append((XFRMA_MARK, mark))
589 nlattrs.append((XFRMA_IF_ID, struct.pack("=I", xfrm_if_id)))
590 self.SendXfrmNlRequest(XFRM_MSG_DELSA, usersa_id, nlattrs)
748 nlattrs = []
754 nlattrs.append((XFRMA_MIGRATE, xfrmMigrate))
758 XfrmUserpolicyId(sel=selector, dir=direction), nlattrs)