aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-08-03 02:50:43 -0700
committerDave Barach <openvpp@barachs.net>2018-08-04 16:00:32 +0000
commit466f289c27f290a2764a82f57f5c20d080227ead (patch)
treef37fd2763c95e3139d57423d06ae993453dc382c /src/vnet/session
parente7a9b3d2545c00689fe7547e7d807fe4a9b3365d (diff)
socket api: multiple fds in one msg
Change-Id: I77a6e092a42290eed7201ad4a62e0d00ef997d2b Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rwxr-xr-xsrc/vnet/session/session_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c
index 8585b57b030..76c10210a50 100755
--- a/src/vnet/session/session_api.c
+++ b/src/vnet/session/session_api.c
@@ -63,12 +63,13 @@ static int
session_send_memfd_fd (vl_api_registration_t * reg, const ssvm_private_t * sp)
{
clib_error_t *error;
+ int fd = sp->fd;
if (vl_api_registration_file_index (reg) == VL_API_INVALID_FI)
{
clib_warning ("can't send memfd fd");
return -1;
}
- error = vl_api_send_fd_msg (reg, sp->fd);
+ error = vl_api_send_fd_msg (reg, &fd, 1);
if (error)
{
clib_error_report (error);