Lines Matching refs:usersa
943 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()
1121 fillXfrmCurLifetimeDefaults(&usersa->curlft); in fillUserSaInfo()
1122 memset(&usersa->stats, 0, sizeof(usersa->stats)); // leave stats zeroed out in fillUserSaInfo()
1123 usersa->reqid = record.transformId; in fillUserSaInfo()
1124 usersa->family = record.addrFamily; in fillUserSaInfo()
1125 usersa->mode = static_cast<uint8_t>(record.mode); in fillUserSaInfo()
1126 usersa->replay_window = REPLAY_WINDOW_SIZE; in fillUserSaInfo()
1129 usersa->flags = 0; // TODO: should we actually set flags, XFRM_SA_XFLAG_DONT_ENCAP_DSCP? in fillUserSaInfo()
1131 usersa->flags = XFRM_STATE_AF_UNSPEC; in fillUserSaInfo()
1134 return sizeof(*usersa); in fillUserSaInfo()