Home
last modified time | relevance | path

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

/system/netd/server/
DXfrmController.cpp801 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()
[all …]
DXfrmController.h316 xfrm_user_tmpl tmpl; member
323 xfrm_encap_tmpl tmpl; member
388 static int fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl);
399 static void fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl);
402 static int fillNlAttrUserTemplate(const XfrmSpInfo& record, nlattr_user_tmpl* tmpl);
DXfrmControllerTest.cpp114 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()
/system/tools/aidl/
Daidl_to_cpp_common.cpp372 auto tmpl = R"--( in PublicFields() local
423 out << fmt::format(tmpl, fmt::arg("name", name), fmt::arg("default_name", default_name), in PublicFields()