mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 23:41:56 +00:00
When sending data to network, make sure to check the return code from network driver. The driver should return these codes: 0 : If packet could not be sent. In this case buf should not be released. 1 : If the packet was sent successfully. In this case the buf should be released by either the send() or some other lower layer function. <0: If there is an error, the buf should not be released by send() function. Fixed the relevant part in Contiki code so that the tcpip_output() return correct value 0 = packet was not sent, caller needs to free it 1 = packet was sent, network driver will free the net_buf after sending it to medium Change-Id: I4380d7747985fc057f5ef73ca97b76f6e9888a55 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
---|---|---|
.. | ||
net_buf.h | ||
net_core.h | ||
net_ip.h | ||
net_socket.h |