net: contiki: Add debug printing when traversing UDP connections

Disabling prints by default but have them around as we will need
them later.

Change-Id: I21d980018286be560b9a072ee08ef0be42b0e788
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2015-07-27 17:16:16 +03:00 committed by Anas Nashif
commit f4a2245d8b

View file

@ -1530,6 +1530,13 @@ uip_process(struct net_buf *buf, uint8_t flag)
connection is bound to a remote port. Finally, if the connection is bound to a remote port. Finally, if the
connection is bound to a remote IP address, the source IP connection is bound to a remote IP address, the source IP
address of the packet is checked. */ address of the packet is checked. */
#if 0
PRINTF("%d: conn %p lport %d rport %d destport %d srcport %d\n",
i, &uip_udp_conns[i], uip_ntohs(uip_udp_conns[i].lport),
uip_ntohs(uip_udp_conns[i].rport),
uip_ntohs(UIP_UDP_BUF(buf)->destport),
uip_ntohs(UIP_UDP_BUF(buf)->srcport));
#endif /* 0 */
if(uip_udp_conns[i].lport != 0 && if(uip_udp_conns[i].lport != 0 &&
UIP_UDP_BUF(buf)->destport == uip_udp_conns[i].lport && UIP_UDP_BUF(buf)->destport == uip_udp_conns[i].lport &&
(uip_udp_conns[i].rport == 0 || (uip_udp_conns[i].rport == 0 ||