Lines Matching refs:iov
180 void logIov(const std::vector<iovec>& iov) { in logIov() argument
181 for (const iovec& row : iov) { in logIov()
292 for (const iovec& iov : *iovecs) { in sendMessage()
293 nlMsg.nlmsg_len += iov.iov_len; in sendMessage()
431 std::vector<iovec> iov = {{nullptr, 0}, // reserved for the eventual addition of a NLMSG_HDR in flushSaDb() local
435 return s.sendMessage(XFRM_MSG_FLUSHSA, NETLINK_REQUEST_FLAGS, 0, &iov); in flushSaDb()
439 std::vector<iovec> iov = {{nullptr, 0}}; // reserved for the eventual addition of a NLMSG_HDR in flushPolicyDb() local
440 return s.sendMessage(XFRM_MSG_FLUSHPOLICY, NETLINK_REQUEST_FLAGS, 0, &iov); in flushPolicyDb()
973 std::vector<iovec> iov = { in updateSecurityAssociation() local
1016 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
1017 iov[USERSA_PAD].iov_len = NLMSG_ALIGN(len) - len; in updateSecurityAssociation()
1019 len = iov[CRYPT].iov_len = fillNlAttrXfrmAlgoEnc(record.crypt, &crypt); in updateSecurityAssociation()
1020 iov[CRYPT_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1022 len = iov[AUTH].iov_len = fillNlAttrXfrmAlgoAuth(record.auth, &auth); in updateSecurityAssociation()
1023 iov[AUTH_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1025 len = iov[AEAD].iov_len = fillNlAttrXfrmAlgoAead(record.aead, &aead); in updateSecurityAssociation()
1026 iov[AEAD_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1028 len = iov[MARK].iov_len = fillNlAttrXfrmMark(record, &xfrmmark); in updateSecurityAssociation()
1029 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1031 len = iov[OUTPUT_MARK].iov_len = fillNlAttrXfrmOutputMark(record, &xfrmoutputmark); in updateSecurityAssociation()
1032 iov[OUTPUT_MARK_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1034 len = iov[ENCAP].iov_len = fillNlAttrXfrmEncapTmpl(record, &encap); in updateSecurityAssociation()
1035 iov[ENCAP_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1037 len = iov[INTF_ID].iov_len = fillNlAttrXfrmIntfId(record.xfrm_if_id, &xfrm_if_id); in updateSecurityAssociation()
1038 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1040 len = iov[REPLAY_ESN].iov_len = fillNlAttrXfrmReplayEsn(&xfrm_replay_esn); in updateSecurityAssociation()
1041 iov[REPLAY_ESN_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1043 return sock.sendMessage(XFRM_MSG_UPDSA, NETLINK_REQUEST_FLAGS, 0, &iov); in updateSecurityAssociation()
1160 std::vector<iovec> iov = { in deleteSecurityAssociation() local
1171 len = iov[USERSAID].iov_len = fillUserSaId(record, &said); in deleteSecurityAssociation()
1172 iov[USERSAID_PAD].iov_len = NLMSG_ALIGN(len) - len; in deleteSecurityAssociation()
1174 len = iov[MARK].iov_len = fillNlAttrXfrmMark(record, &xfrmmark); in deleteSecurityAssociation()
1175 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in deleteSecurityAssociation()
1177 len = iov[INTF_ID].iov_len = fillNlAttrXfrmIntfId(record.xfrm_if_id, &xfrm_if_id); in deleteSecurityAssociation()
1178 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in deleteSecurityAssociation()
1180 return sock.sendMessage(XFRM_MSG_DELSA, NETLINK_REQUEST_FLAGS, 0, &iov); in deleteSecurityAssociation()
1190 std::vector<iovec> iov = { in migrate() local
1198 return sock.sendMessage(XFRM_MSG_MIGRATE, NETLINK_REQUEST_FLAGS, 0, &iov); in migrate()
1208 std::vector<iovec> iov = { in allocateSpi() local
1219 len = iov[USERSAID].iov_len = sizeof(spiInfo); in allocateSpi()
1220 iov[USERSAID_PAD].iov_len = NLMSG_ALIGN(len) - len; in allocateSpi()
1228 ret = sock.sendMessage(XFRM_MSG_ALLOCSPI, NETLINK_REQUEST_FLAGS, 0, &iov); in allocateSpi()
1269 std::vector<iovec> iov = { in updateTunnelModeSecurityPolicy() local
1282 len = iov[USERPOLICY].iov_len = fillUserSpInfo(record, &userpolicy); in updateTunnelModeSecurityPolicy()
1283 iov[USERPOLICY_PAD].iov_len = NLMSG_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1285 len = iov[USERTMPL].iov_len = fillNlAttrUserTemplate(record, &usertmpl); in updateTunnelModeSecurityPolicy()
1286 iov[USERTMPL_PAD].iov_len = NLA_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1288 len = iov[MARK].iov_len = fillNlAttrXfrmMark(record, &xfrmmark); in updateTunnelModeSecurityPolicy()
1289 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1291 len = iov[INTF_ID].iov_len = fillNlAttrXfrmIntfId(record.xfrm_if_id, &xfrm_if_id); in updateTunnelModeSecurityPolicy()
1292 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1294 return sock.sendMessage(msgType, NETLINK_REQUEST_FLAGS, 0, &iov); in updateTunnelModeSecurityPolicy()
1313 std::vector<iovec> iov = { in deleteTunnelModeSecurityPolicy() local
1323 int len = iov[USERPOLICYID].iov_len = fillUserPolicyId(record, &policyid); in deleteTunnelModeSecurityPolicy()
1324 iov[USERPOLICYID_PAD].iov_len = NLMSG_ALIGN(len) - len; in deleteTunnelModeSecurityPolicy()
1326 len = iov[MARK].iov_len = fillNlAttrXfrmMark(record, &xfrmmark); in deleteTunnelModeSecurityPolicy()
1327 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in deleteTunnelModeSecurityPolicy()
1329 len = iov[INTF_ID].iov_len = fillNlAttrXfrmIntfId(record.xfrm_if_id, &xfrm_if_id); in deleteTunnelModeSecurityPolicy()
1330 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in deleteTunnelModeSecurityPolicy()
1332 return sock.sendMessage(XFRM_MSG_DELPOLICY, NETLINK_REQUEST_FLAGS, 0, &iov); in deleteTunnelModeSecurityPolicy()
1570 iovec iov[] = { in ipSecAddXfrmInterface() local
1578 int ret = -sendNetlinkRequest(RTM_NEWLINK, flags, iov, ARRAY_SIZE(iov), nullptr); in ipSecAddXfrmInterface()
1667 iovec iov[] = { in ipSecAddVirtualTunnelInterface() local
1703 int ret = -1 * sendNetlinkRequest(RTM_NEWLINK, flags, iov, ARRAY_SIZE(iov), nullptr); in ipSecAddVirtualTunnelInterface()
1724 iovec iov[] = { in ipSecRemoveTunnelInterface() local
1737 int ret = -1 * sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr); in ipSecRemoveTunnelInterface()