net: uip: Fix udp_socket_process receive data callback buffer handling.

Adjust the data pointer passed to a udp_socket_register() registered
callback to point to the udp data contents rather than the header
information.

Change-Id: Ib90eee91e0ec4d0290517fee7b929d39ce3e07c6
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-06-24 15:40:13 +01:00 committed by Anas Nashif
commit 01f59b6d9e

View file

@ -193,7 +193,7 @@ PROCESS_THREAD(udp_socket_process, ev, data, buf, user_data)
UIP_HTONS(UIP_IP_BUF(buf)->srcport),
&(UIP_IP_BUF(buf)->destipaddr),
UIP_HTONS(UIP_IP_BUF(buf)->destport),
uip_buf(buf), uip_datalen(buf));
uip_appdata(buf), uip_datalen(buf));
PROCESS_CONTEXT_END();
}
}