Home
last modified time | relevance | path

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

/system/netd/server/
DXfrmController.cpp879 xfrm_usersa_info usersa{}; in updateSecurityAssociation() local
910 {&usersa, 0}, // main usersa_info struct in updateSecurityAssociation()
949 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
1045 int XfrmController::fillUserSaInfo(const XfrmSaInfo& record, xfrm_usersa_info* usersa) { in fillUserSaInfo() argument
1048 fillXfrmSelector(AF_UNSPEC, &usersa->sel); in fillUserSaInfo()
1050 usersa->id.proto = IPPROTO_ESP; in fillUserSaInfo()
1051 usersa->id.spi = record.spi; in fillUserSaInfo()
1052 usersa->id.daddr = record.dstAddr; in fillUserSaInfo()
1054 usersa->saddr = record.srcAddr; in fillUserSaInfo()
1056 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.h368 static int fillUserSaInfo(const XfrmSaInfo& record, xfrm_usersa_info* usersa);