Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VCL-LDPRELOAD: fix iperf3 socket_test.sh
[vpp.git]
/
extras
/
vcl-ldpreload
/
src
/
libvcl-ldpreload
/
vcom_socket.c
diff --git
a/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c
b/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c
index
c8a9d62
..
96108af
100644
(file)
--- a/
extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c
+++ b/
extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c
@@
-1256,16
+1256,6
@@
vcom_socket_bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)
}
rv = vppcom_session_bind (vsock->sid, &ep);
}
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;
}
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 */
{
/* 1. for socket level options that are NOT socket attributes
* and that has corresponding vpp options get from vppcom */
-#if 0
return 0;
return 0;
-#endif
-
- /* 2. unhandled options */
- return -ENOPROTOOPT;
}
int
}
int