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:
parent
857017a9e3
commit
f4a2245d8b
1 changed files with 7 additions and 0 deletions
|
@ -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 IP address, the source IP
|
||||
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 &&
|
||||
UIP_UDP_BUF(buf)->destport == uip_udp_conns[i].lport &&
|
||||
(uip_udp_conns[i].rport == 0 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue