diff options
author | Mike Holmes <mike.holmes@linaro.org> | 2014-08-25 16:48:50 -0400 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-08-29 00:16:10 +0400 |
commit | 3422f64c4aa248d21c9b13e05b63ca055b9fa25e (patch) | |
tree | e4735b7605180337c1c4f1e833253ab3c53f302d /platform | |
parent | 0faf42a93d1c87f4fda3a046771e149fea6a65d1 (diff) |
linux-generic/odp_packet_socket.c: Add intalization
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-generic/odp_packet_socket.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/linux-generic/odp_packet_socket.c b/platform/linux-generic/odp_packet_socket.c index 9f05618f9..1e484139a 100644 --- a/platform/linux-generic/odp_packet_socket.c +++ b/platform/linux-generic/odp_packet_socket.c @@ -287,6 +287,14 @@ int recv_pkt_sock_basic(pkt_sock_t *const pkt_sock, uint8_t *l2_hdr; int nb_rx = 0; + /* recvfrom: + * If the address argument is not a null pointer + * and the protocol does not provide the source address of + * messages, the the value stored in the object pointed to + * by address is unspecified. + */ + memset(&sll, 0, sizeof(sll)); + for (i = 0; i < len; i++) { if (odp_likely(pkt == ODP_PACKET_INVALID)) { pkt = odp_packet_alloc(pkt_sock->pool); |