Home
last modified time | relevance | path

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

/system/netd/server/
DXfrmController.cpp943 xfrm_usersa_info usersa{}; in updateSecurityAssociation() local
974 {&usersa, 0}, // main usersa_info struct in updateSecurityAssociation()
1013 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
1109 int XfrmController::fillUserSaInfo(const XfrmSaInfo& record, xfrm_usersa_info* usersa) { in fillUserSaInfo() argument
1112 fillXfrmSelector(AF_UNSPEC, &usersa->sel); in fillUserSaInfo()
1114 usersa->id.proto = IPPROTO_ESP; in fillUserSaInfo()
1115 usersa->id.spi = record.spi; in fillUserSaInfo()
1116 usersa->id.daddr = record.dstAddr; in fillUserSaInfo()
1118 usersa->saddr = record.srcAddr; in fillUserSaInfo()
1120 fillXfrmLifetimeDefaults(&usersa->lft); in fillUserSaInfo()
[all …]
DXfrmControllerTest.cpp369 xfrm_usersa_info usersa{}; in testIpSecAddSecurityAssociation() local
370 netdutils::extract(nlMsgSlice, usersa); in testIpSecAddSecurityAssociation()
372 EXPECT_EQ(family, usersa.family); in testIpSecAddSecurityAssociation()
373 EXPECT_EQ(1 /* Transform Id*/, static_cast<int>(usersa.reqid)); in testIpSecAddSecurityAssociation()
374 EXPECT_EQ(static_cast<int>(mode), usersa.mode); in testIpSecAddSecurityAssociation()
377 EXPECT_EQ(XFRM_STATE_AF_UNSPEC, usersa.flags); in testIpSecAddSecurityAssociation()
379 EXPECT_EQ(0, usersa.flags); in testIpSecAddSecurityAssociation()
382 EXPECT_EQ(htonl(DROID_SPI), usersa.id.spi); in testIpSecAddSecurityAssociation()
383 EXPECT_EQ(IPPROTO_ESP, usersa.id.proto); in testIpSecAddSecurityAssociation()
385 expectAddressEquals(family, localAddr, usersa.saddr); in testIpSecAddSecurityAssociation()
[all …]
DXfrmController.h393 static int fillUserSaInfo(const XfrmSaInfo& record, xfrm_usersa_info* usersa);