summaryrefslogtreecommitdiff
path: root/nuttx/net
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-08 18:57:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-08 18:57:27 +0000
commit940a006b421f0a190b8739ef231d9aef45c9f2a5 (patch)
treeb4ac1c161d7387922a425bf94d35390a8f9a8ead /nuttx/net
parent7507485356f2bdf02f95194438c4fafc7aa7db13 (diff)
downloadpx4-nuttx-940a006b421f0a190b8739ef231d9aef45c9f2a5.tar.gz
px4-nuttx-940a006b421f0a190b8739ef231d9aef45c9f2a5.tar.bz2
px4-nuttx-940a006b421f0a190b8739ef231d9aef45c9f2a5.zip
Add more debug output
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1576 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net')
-rw-r--r--nuttx/net/uip/uip_arp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/net/uip/uip_arp.c b/nuttx/net/uip/uip_arp.c
index c5abe5bc7..af8cd624c 100644
--- a/nuttx/net/uip/uip_arp.c
+++ b/nuttx/net/uip/uip_arp.c
@@ -327,6 +327,7 @@ void uip_arp_arpin(struct uip_driver_s *dev)
if (dev->d_len < (sizeof(struct arp_hdr) + UIP_LLH_LEN))
{
+ ndbg("Too small\n");
dev->d_len = 0;
return;
}
@@ -336,6 +337,8 @@ void uip_arp_arpin(struct uip_driver_s *dev)
switch(parp->ah_opcode)
{
case HTONS(ARP_REQUEST):
+ nvdbg("ARP request for IP %04lx\n", (long)ipaddr);
+
/* ARP request. If it asked for our address, we send out a reply. */
if (uip_ipaddr_cmp(ipaddr, dev->d_ipaddr))
@@ -366,6 +369,8 @@ void uip_arp_arpin(struct uip_driver_s *dev)
break;
case HTONS(ARP_REPLY):
+ nvdbg("ARP reply for IP %04lx\n", (long)ipaddr);
+
/* ARP reply. We insert or update the ARP table if it was meant
* for us.
*/
@@ -484,6 +489,8 @@ void uip_arp_out(struct uip_driver_s *dev)
if (i == CONFIG_NET_ARPTAB_SIZE)
{
+ nvdbg("ARP request for IP %04lx\n", (long)ipaddr);
+
/* The destination address was not in our ARP table, so we
* overwrite the IP packet with an ARP request.
*/