diff options
author | Steven <sluong@cisco.com> | 2017-10-16 11:03:51 -0700 |
---|---|---|
committer | Steven <sluong@cisco.com> | 2017-10-16 11:03:51 -0700 |
commit | 0d004aaaed2fe3fc29db5e30004870f94bc7a282 (patch) | |
tree | fb3e27fd5c5b268e029705885cb0a5de81bb9b73 /extras/vcl-ldpreload/src/libvcl-ldpreload | |
parent | 5908e18faaa613e2f43619da3425a0a859705051 (diff) |
LDPRELOAD: Remove hack code in getpeername
Now the real implementation of getpeername is there, we
remove the hack version of getpeername in LDPRELOAD.
Change-Id: I8fa2ba93d346f78d04129a87ee17a834cba537da
Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'extras/vcl-ldpreload/src/libvcl-ldpreload')
-rw-r--r-- | extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c b/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c index fdcf13791d9..c8a9d623a9b 100644 --- a/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c +++ b/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.c @@ -1420,20 +1420,6 @@ vcom_socket_getpeername (int __fd, __SOCKADDR_ARG __addr, return -EINVAL; } - /* DAW: hack to allow iperf3 to be happy w/ getpeername output */ - { - uint8_t *a; - ((struct sockaddr_in *) __addr)->sin_family = AF_INET; - ((struct sockaddr_in *) __addr)->sin_port = 0x1000; - a = (uint8_t *) & ((struct sockaddr_in *) __addr)->sin_addr; - a[0] = 0x7f; - a[1] = 0x00; - a[2] = 0x00; - a[3] = 0x01; - *__len = sizeof (struct sockaddr_in); - return 0; - } - vppcom_endpt_t ep; ep.ip = (u8 *) & ((const struct sockaddr_in *) __addr)->sin_addr; rv = vppcom_session_getpeername (vsock->sid, &ep); |