Lines Matching refs:nlattrs
388 nlattrs = []
390 nlattrs.append((XFRMA_TMPL, tmpl))
392 nlattrs.append((XFRMA_MARK, mark))
394 nlattrs.append((XFRMA_IF_ID, struct.pack("=I", xfrm_if_id)))
395 self.SendXfrmNlRequest(msg, policy, nlattrs)
432 nlattrs = []
434 nlattrs.append((XFRMA_MARK, mark))
436 nlattrs.append((XFRMA_IF_ID, struct.pack("=I", xfrm_if_id)))
439 nlattrs)
442 def SendXfrmNlRequest(self, msg_type, req, nlattrs=None, argument
455 if nlattrs is None:
456 nlattrs = []
457 for attr_type, attr_msg in nlattrs:
511 nlattrs = ""
514 nlattrs += self._NlAttr(XFRMA_ALG_CRYPT, enc.Pack() + key)
518 nlattrs += self._NlAttr(XFRMA_ALG_AUTH_TRUNC, auth.Pack() + key)
522 nlattrs += self._NlAttr(XFRMA_ALG_AEAD, aead_alg.Pack() + key)
526 nlattrs += self._NlAttr(XFRMA_MARK, mark.Pack())
528 nlattrs += self._NlAttr(XFRMA_ENCAP, encap.Pack())
530 nlattrs += self._NlAttrU32(XFRMA_OUTPUT_MARK, output_mark)
532 nlattrs += self._NlAttrU32(XFRMA_IF_ID, xfrm_if_id)
559 msg = sa.Pack() + nlattrs
577 nlattrs = []
579 nlattrs.append((XFRMA_MARK, mark))
581 nlattrs.append((XFRMA_IF_ID, struct.pack("=I", xfrm_if_id)))
582 self.SendXfrmNlRequest(XFRM_MSG_DELSA, usersa_id, nlattrs)