Searched refs:tmpl (Results 1 – 3 of 3) sorted by relevance
/system/netd/server/ |
D | XfrmController.cpp | 737 xfrm_user_tmpl tmpl; in ipSecApplyTransportModeTransform() member 741 fillUserTemplate(spInfo, &policy.tmpl); in ipSecApplyTransportModeTransform() 1032 int XfrmController::fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl) { in fillNlAttrXfrmEncapTmpl() argument 1038 tmpl->tmpl.encap_type = static_cast<uint16_t>(record.encap.type); in fillNlAttrXfrmEncapTmpl() 1039 tmpl->tmpl.encap_sport = htons(record.encap.srcPort); in fillNlAttrXfrmEncapTmpl() 1040 tmpl->tmpl.encap_dport = htons(record.encap.dstPort); in fillNlAttrXfrmEncapTmpl() 1041 fillXfrmNlaHdr(&tmpl->hdr, XFRMA_ENCAP, len); in fillNlAttrXfrmEncapTmpl() 1264 void XfrmController::fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl) { in fillUserTemplate() argument 1265 tmpl->id.daddr = record.dstAddr; in fillUserTemplate() 1266 tmpl->id.spi = record.spi; in fillUserTemplate() [all …]
|
D | XfrmController.h | 301 xfrm_user_tmpl tmpl; member 308 xfrm_encap_tmpl tmpl; member 363 static int fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl); 374 static void fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl); 378 static int fillNlAttrUserTemplate(const XfrmSpInfo& record, nlattr_user_tmpl* tmpl);
|
D | XfrmControllerTest.cpp | 114 xfrm_user_tmpl tmpl; member 533 EXPECT_EQ(1 /* resourceId */, static_cast<int>(policy.tmpl.reqid)); in TEST_P() 534 EXPECT_EQ(htonl(DROID_SPI), policy.tmpl.id.spi); in TEST_P() 536 expectAddressEquals(xfrmFamily, localAddr, policy.tmpl.saddr); in TEST_P() 537 expectAddressEquals(xfrmFamily, remoteAddr, policy.tmpl.id.daddr); in TEST_P() 688 netdutils::extract(buf, usertmpl.tmpl); in TEST_P() 701 expectAddressEquals(family, remoteAddr, usertmpl.tmpl.id.daddr); in TEST_P()
|