Home
last modified time | relevance | path

Searched refs:tmpl (Results 1 – 3 of 3) sorted by relevance

/system/netd/server/
DXfrmController.cpp738 xfrm_user_tmpl tmpl; in ipSecApplyTransportModeTransform() member
742 fillUserTemplate(spInfo, &policy.tmpl); in ipSecApplyTransportModeTransform()
1033 int XfrmController::fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl) { in fillNlAttrXfrmEncapTmpl() argument
1039 tmpl->tmpl.encap_type = static_cast<uint16_t>(record.encap.type); in fillNlAttrXfrmEncapTmpl()
1040 tmpl->tmpl.encap_sport = htons(record.encap.srcPort); in fillNlAttrXfrmEncapTmpl()
1041 tmpl->tmpl.encap_dport = htons(record.encap.dstPort); in fillNlAttrXfrmEncapTmpl()
1042 fillXfrmNlaHdr(&tmpl->hdr, XFRMA_ENCAP, len); in fillNlAttrXfrmEncapTmpl()
1265 int XfrmController::fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl) { in fillUserTemplate() argument
1266 tmpl->id.daddr = record.dstAddr; in fillUserTemplate()
1267 tmpl->id.spi = record.spi; in fillUserTemplate()
[all …]
DXfrmController.h300 xfrm_user_tmpl tmpl; member
307 xfrm_encap_tmpl tmpl; member
362 static int fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl);
373 static int fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl);
377 static int fillNlAttrUserTemplate(const XfrmSpInfo& record, nlattr_user_tmpl* tmpl);
DXfrmControllerTest.cpp115 xfrm_user_tmpl tmpl; member
534 EXPECT_EQ(1 /* resourceId */, static_cast<int>(policy.tmpl.reqid)); in TEST_P()
535 EXPECT_EQ(htonl(DROID_SPI), policy.tmpl.id.spi); in TEST_P()
537 expectAddressEquals(xfrmFamily, localAddr, policy.tmpl.saddr); in TEST_P()
538 expectAddressEquals(xfrmFamily, remoteAddr, policy.tmpl.id.daddr); in TEST_P()
689 netdutils::extract(buf, usertmpl.tmpl); in TEST_P()
702 expectAddressEquals(family, remoteAddr, usertmpl.tmpl.id.daddr); in TEST_P()