Lines Matching refs:iov
179 void logIov(const std::vector<iovec>& iov) { in logIov() argument
180 for (const iovec& row : iov) { in logIov()
291 for (const iovec& iov : *iovecs) { in sendMessage()
292 nlMsg.nlmsg_len += iov.iov_len; in sendMessage()
430 std::vector<iovec> iov = {{nullptr, 0}, // reserved for the eventual addition of a NLMSG_HDR in flushSaDb() local
434 return s.sendMessage(XFRM_MSG_FLUSHSA, NETLINK_REQUEST_FLAGS, 0, &iov); in flushSaDb()
438 std::vector<iovec> iov = {{nullptr, 0}}; // reserved for the eventual addition of a NLMSG_HDR in flushPolicyDb() local
439 return s.sendMessage(XFRM_MSG_FLUSHPOLICY, NETLINK_REQUEST_FLAGS, 0, &iov); in flushPolicyDb()
908 std::vector<iovec> iov = { in updateSecurityAssociation() local
949 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
950 iov[USERSA_PAD].iov_len = NLMSG_ALIGN(len) - len; in updateSecurityAssociation()
952 len = iov[CRYPT].iov_len = fillNlAttrXfrmAlgoEnc(record.crypt, &crypt); in updateSecurityAssociation()
953 iov[CRYPT_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
955 len = iov[AUTH].iov_len = fillNlAttrXfrmAlgoAuth(record.auth, &auth); in updateSecurityAssociation()
956 iov[AUTH_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
958 len = iov[AEAD].iov_len = fillNlAttrXfrmAlgoAead(record.aead, &aead); in updateSecurityAssociation()
959 iov[AEAD_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
961 len = iov[MARK].iov_len = fillNlAttrXfrmMark(record, &xfrmmark); in updateSecurityAssociation()
962 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
964 len = iov[OUTPUT_MARK].iov_len = fillNlAttrXfrmOutputMark(record.netId, &xfrmoutputmark); in updateSecurityAssociation()
965 iov[OUTPUT_MARK_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
967 len = iov[ENCAP].iov_len = fillNlAttrXfrmEncapTmpl(record, &encap); in updateSecurityAssociation()
968 iov[ENCAP_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
970 len = iov[INTF_ID].iov_len = fillNlAttrXfrmIntfId(record.xfrm_if_id, &xfrm_if_id); in updateSecurityAssociation()
971 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
973 return sock.sendMessage(XFRM_MSG_UPDSA, NETLINK_REQUEST_FLAGS, 0, &iov); in updateSecurityAssociation()
1090 std::vector<iovec> iov = { in deleteSecurityAssociation() local
1101 len = iov[USERSAID].iov_len = fillUserSaId(record, &said); in deleteSecurityAssociation()
1102 iov[USERSAID_PAD].iov_len = NLMSG_ALIGN(len) - len; in deleteSecurityAssociation()
1104 len = iov[MARK].iov_len = fillNlAttrXfrmMark(record, &xfrmmark); in deleteSecurityAssociation()
1105 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in deleteSecurityAssociation()
1107 len = iov[INTF_ID].iov_len = fillNlAttrXfrmIntfId(record.xfrm_if_id, &xfrm_if_id); in deleteSecurityAssociation()
1108 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in deleteSecurityAssociation()
1110 return sock.sendMessage(XFRM_MSG_DELSA, NETLINK_REQUEST_FLAGS, 0, &iov); in deleteSecurityAssociation()
1120 std::vector<iovec> iov = { in allocateSpi() local
1131 len = iov[USERSAID].iov_len = sizeof(spiInfo); in allocateSpi()
1132 iov[USERSAID_PAD].iov_len = NLMSG_ALIGN(len) - len; in allocateSpi()
1140 ret = sock.sendMessage(XFRM_MSG_ALLOCSPI, NETLINK_REQUEST_FLAGS, 0, &iov); in allocateSpi()
1182 std::vector<iovec> iov = { in updateTunnelModeSecurityPolicy() local
1195 len = iov[USERPOLICY].iov_len = fillUserSpInfo(record, direction, &userpolicy); in updateTunnelModeSecurityPolicy()
1196 iov[USERPOLICY_PAD].iov_len = NLMSG_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1198 len = iov[USERTMPL].iov_len = fillNlAttrUserTemplate(record, &usertmpl); in updateTunnelModeSecurityPolicy()
1199 iov[USERTMPL_PAD].iov_len = NLA_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1201 len = iov[MARK].iov_len = fillNlAttrXfrmMark(record, &xfrmmark); in updateTunnelModeSecurityPolicy()
1202 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1204 len = iov[INTF_ID].iov_len = fillNlAttrXfrmIntfId(record.xfrm_if_id, &xfrm_if_id); in updateTunnelModeSecurityPolicy()
1205 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1207 return sock.sendMessage(msgType, NETLINK_REQUEST_FLAGS, 0, &iov); in updateTunnelModeSecurityPolicy()
1227 std::vector<iovec> iov = { in deleteTunnelModeSecurityPolicy() local
1237 int len = iov[USERPOLICYID].iov_len = fillUserPolicyId(record, direction, &policyid); in deleteTunnelModeSecurityPolicy()
1238 iov[USERPOLICYID_PAD].iov_len = NLMSG_ALIGN(len) - len; in deleteTunnelModeSecurityPolicy()
1240 len = iov[MARK].iov_len = fillNlAttrXfrmMark(record, &xfrmmark); in deleteTunnelModeSecurityPolicy()
1241 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in deleteTunnelModeSecurityPolicy()
1243 len = iov[INTF_ID].iov_len = fillNlAttrXfrmIntfId(record.xfrm_if_id, &xfrm_if_id); in deleteTunnelModeSecurityPolicy()
1244 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in deleteTunnelModeSecurityPolicy()
1246 return sock.sendMessage(XFRM_MSG_DELPOLICY, NETLINK_REQUEST_FLAGS, 0, &iov); in deleteTunnelModeSecurityPolicy()
1452 iovec iov[] = { in ipSecAddXfrmInterface() local
1460 int ret = -sendNetlinkRequest(RTM_NEWLINK, flags, iov, ARRAY_SIZE(iov), nullptr); in ipSecAddXfrmInterface()
1549 iovec iov[] = { in ipSecAddVirtualTunnelInterface() local
1585 int ret = -1 * sendNetlinkRequest(RTM_NEWLINK, flags, iov, ARRAY_SIZE(iov), nullptr); in ipSecAddVirtualTunnelInterface()
1606 iovec iov[] = { in ipSecRemoveTunnelInterface() local
1619 int ret = -1 * sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr); in ipSecRemoveTunnelInterface()