ldp: return byte count from a successful recvfrom 84/17684/3
authorHaggai Eran <haggai.eran@gmail.com>
Tue, 19 Feb 2019 13:04:42 +0000 (15:04 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 19 Feb 2019 17:14:24 +0000 (17:14 +0000)
commit46ae2ef0f94c6ac63db22d67196ac764735f0c2e
tree3eedf06cd8978d0c1194cb213d250927d0d7108c
parentf1b4e52a6e9f8ec74127da194ec5bbaccd63b87c
ldp: return byte count from a successful recvfrom

Unless there's an error, recvfrom should return the number of bytes
received. The current code returns zero on success due to
ldp_copy_ep_to_sockaddr returning zero.

Change-Id: Ib843b99a08c44b5ee2d16efe9edab0cf5df65170
Signed-off-by: Haggai Eran <haggai.eran@gmail.com>
src/vcl/ldp.c