VCL-LDPRELOAD: fix iperf3 socket_test.sh

Change-Id: Ib6b52917af717d3341429163fb9ecc903cf717fb
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
This commit is contained in:
Dave Wallace
2017-10-18 21:15:48 -04:00
committed by Florin Coras
parent 17142b2030
commit 9c4b5b28b1
3 changed files with 114 additions and 50 deletions

View File

@ -1256,16 +1256,6 @@ vcom_socket_bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)
}
rv = vppcom_session_bind (vsock->sid, &ep);
/* TBD: remove libc_bind code snippet
* once vppcom implements vppcom_session_getsockname */
if (rv == 0)
{
rv = libc_bind (__fd, __addr, __len);
if (rv != 0)
{
rv = -errno;
}
}
return rv;
}
@ -1741,12 +1731,7 @@ vppcom_getsockopt (int __sid, int __level, int __optname,
{
/* 1. for socket level options that are NOT socket attributes
* and that has corresponding vpp options get from vppcom */
#if 0
return 0;
#endif
/* 2. unhandled options */
return -ENOPROTOOPT;
}
int