zephyr/include
Jukka Rissanen 20aa77ce6f net: Network buffers could be lost when sending packets
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>
2016-02-05 20:15:22 -05:00
..
arch Fix typo: occured -> occurred 2016-02-05 20:15:21 -05:00
bluetooth Bluetooth: GATT: Add offset to bt_gatt_write 2016-02-05 20:15:22 -05:00
drivers Remove PIC code, but not PIC disabling code 2016-02-05 20:15:20 -05:00
microkernel timers: consolidate task_timer_start/restart() 2016-02-05 20:15:21 -05:00
misc util: move ARRAY_SIZE/CONTAINER_OF to non-ASM part of file 2016-02-05 20:15:21 -05:00
net net: Network buffers could be lost when sending packets 2016-02-05 20:15:22 -05:00
toolchain toolchain.h: add __used macro 2016-02-05 20:15:19 -05:00
atomic.h doxygen: javadoc style 2016-02-05 20:14:32 -05:00
device.h drivers: extending device.h for common driver ops 2016-02-05 20:15:19 -05:00
gpio.h gpio: Fix function signature for gpio_set_callback() 2016-02-05 20:15:19 -05:00
i2c.h doxygen: javadoc style 2016-02-05 20:14:32 -05:00
init.h toolchain.h: add __used macro 2016-02-05 20:15:19 -05:00
kernel_version.h version: Update version handling and code 2016-02-05 20:14:27 -05:00
linker-defs.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
linker-tool-gcc.h toolchain: add support for iamcu toolchain 2016-02-05 20:14:38 -05:00
linker-tool.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
microkernel.h timers: consolidate task_timer_start/restart() 2016-02-05 20:15:21 -05:00
nanokernel.h doxygen: move nanokernel fiber comments to header 2016-02-05 20:15:20 -05:00
section_tags.h Rename VXMICRO_ARCH_arc -> CONFIG_ARC 2016-02-05 20:14:16 -05:00
sections.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
spi.h spi: Fix the generic API header 2016-02-05 20:14:39 -05:00
sw_isr_table.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
sys_clock.h Kconfig: fix SYS_CLOCK_HW_CYCLES_PER_SEC dependencies 2016-02-05 20:14:42 -05:00
toolchain.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00