Lines Matching refs:usersa
879 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()
1057 fillXfrmCurLifetimeDefaults(&usersa->curlft); in fillUserSaInfo()
1058 memset(&usersa->stats, 0, sizeof(usersa->stats)); // leave stats zeroed out in fillUserSaInfo()
1059 usersa->reqid = record.transformId; in fillUserSaInfo()
1060 usersa->family = record.addrFamily; in fillUserSaInfo()
1061 usersa->mode = static_cast<uint8_t>(record.mode); in fillUserSaInfo()
1062 usersa->replay_window = REPLAY_WINDOW_SIZE; in fillUserSaInfo()
1065 usersa->flags = 0; // TODO: should we actually set flags, XFRM_SA_XFLAG_DONT_ENCAP_DSCP? in fillUserSaInfo()
1067 usersa->flags = XFRM_STATE_AF_UNSPEC; in fillUserSaInfo()
1070 return sizeof(*usersa); in fillUserSaInfo()