• Home
  • Raw
  • Download

Lines Matching refs:tmpl

801         xfrm_user_tmpl tmpl;  in ipSecApplyTransportModeTransform()  member
805 fillUserTemplate(spInfo, &policy.tmpl); in ipSecApplyTransportModeTransform()
1096 int XfrmController::fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl) { in fillNlAttrXfrmEncapTmpl() argument
1102 tmpl->tmpl.encap_type = static_cast<uint16_t>(record.encap.type); in fillNlAttrXfrmEncapTmpl()
1103 tmpl->tmpl.encap_sport = htons(record.encap.srcPort); in fillNlAttrXfrmEncapTmpl()
1104 tmpl->tmpl.encap_dport = htons(record.encap.dstPort); in fillNlAttrXfrmEncapTmpl()
1105 fillXfrmNlaHdr(&tmpl->hdr, XFRMA_ENCAP, len); in fillNlAttrXfrmEncapTmpl()
1343 void XfrmController::fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl) { in fillUserTemplate() argument
1344 tmpl->id.daddr = record.dstAddr; in fillUserTemplate()
1345 tmpl->id.spi = record.spi; in fillUserTemplate()
1346 tmpl->id.proto = IPPROTO_ESP; in fillUserTemplate()
1348 tmpl->family = record.addrFamily; in fillUserTemplate()
1349 tmpl->saddr = record.srcAddr; in fillUserTemplate()
1350 tmpl->reqid = record.transformId; in fillUserTemplate()
1351 tmpl->mode = static_cast<uint8_t>(record.mode); in fillUserTemplate()
1352 tmpl->share = XFRM_SHARE_UNIQUE; in fillUserTemplate()
1353 tmpl->optional = 0; // if this is true, then a failed state lookup will be considered OK: in fillUserTemplate()
1355 tmpl->aalgos = ALGO_MASK_AUTH_ALL; // TODO: if there's a bitmask somewhere of in fillUserTemplate()
1358 tmpl->ealgos = ALGO_MASK_CRYPT_ALL; // TODO: if there's a bitmask somewhere... in fillUserTemplate()
1361 int XfrmController::fillNlAttrUserTemplate(const XfrmSpInfo& record, nlattr_user_tmpl* tmpl) { in fillNlAttrUserTemplate() argument
1362 fillUserTemplate(record, &tmpl->tmpl); in fillNlAttrUserTemplate()
1365 fillXfrmNlaHdr(&tmpl->hdr, XFRMA_TMPL, len); in fillNlAttrUserTemplate()