Searched refs:tmpl (Results 1 – 4 of 4) sorted by relevance
/system/netd/server/ |
D | XfrmController.cpp | 799 xfrm_user_tmpl tmpl; in ipSecApplyTransportModeTransform() member 803 fillUserTemplate(spInfo, &policy.tmpl); in ipSecApplyTransportModeTransform() 1102 int XfrmController::fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl) { in fillNlAttrXfrmEncapTmpl() argument 1108 tmpl->tmpl.encap_type = static_cast<uint16_t>(record.encap.type); in fillNlAttrXfrmEncapTmpl() 1109 tmpl->tmpl.encap_sport = htons(record.encap.srcPort); in fillNlAttrXfrmEncapTmpl() 1110 tmpl->tmpl.encap_dport = htons(record.encap.dstPort); in fillNlAttrXfrmEncapTmpl() 1111 fillXfrmNlaHdr(&tmpl->hdr, XFRMA_ENCAP, len); in fillNlAttrXfrmEncapTmpl() 1349 void XfrmController::fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl) { in fillUserTemplate() argument 1350 tmpl->id.daddr = record.dstAddr; in fillUserTemplate() 1351 tmpl->id.spi = record.spi; in fillUserTemplate() [all …]
|
D | XfrmController.h | 333 xfrm_user_tmpl tmpl; member 340 xfrm_encap_tmpl tmpl; member 405 static int fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl); 416 static void fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl); 419 static int fillNlAttrUserTemplate(const XfrmSpInfo& record, nlattr_user_tmpl* tmpl);
|
D | XfrmControllerTest.cpp | 115 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/ |
D | aidl_to_cpp_common.cpp | 356 constexpr auto tmpl = R"--(static int _cmp(const {name}& _lhs, const {name}& _rhs) {{ in GenerateParcelableComparisonOperators() local 374 out << fmt::format(tmpl, fmt::arg("name", name), fmt::arg("min_tag", min_tag), in GenerateParcelableComparisonOperators() 707 constexpr auto tmpl = R"--( in PublicFields() local 735 out << fmt::format(tmpl, fmt::arg("name", name), fmt::arg("typelist", typelist)); in PublicFields() 743 constexpr auto tmpl = R"--( in PublicFields() local 790 out << fmt::format(tmpl, fmt::arg("name", name), fmt::arg("default_name", default_name), in PublicFields()
|