net: contiki: Added clarification for UDP packet reception

Added comment how UDP packet is handled when receiving it.

Change-Id: If1e10c5bde55cb2cf7a8928b0f1ec38dd6ab84b4
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2015-08-03 13:29:26 +03:00 committed by Anas Nashif
commit 7f77a6774d

View file

@ -1575,7 +1575,9 @@ uip_process(struct net_buf *buf, uint8_t flag)
/* If the application does not want to send anything, then uip_slen(buf)
* will be 0. In this case we MUST NOT set uip_len(buf) to 0 as that would
* cause the net_buf to be released by rx fiber. In this case it is
* application responsibility to release the buffer.
* application responsibility to release the buffer. Returning 0 here
* will mean that tcpip.c:packet_input() will not try to call
* tcpip_ipv6_output().
*/
return 0;
}