summaryrefslogtreecommitdiffstats
path: root/src/net/ndp.c
diff options
context:
space:
mode:
authorMichael Brown2007-12-07 02:51:08 +0100
committerMichael Brown2007-12-07 02:51:08 +0100
commit798f7f6b8e007a6075222c2491ddc1416ce937a9 (patch)
tree2ac9649b7ff0207e4d2196487b1a7e52c8e9f597 /src/net/ndp.c
parentDon't complain when callers provide too-short buffers for (diff)
downloadipxe-798f7f6b8e007a6075222c2491ddc1416ce937a9.tar.gz
ipxe-798f7f6b8e007a6075222c2491ddc1416ce937a9.tar.xz
ipxe-798f7f6b8e007a6075222c2491ddc1416ce937a9.zip
Kill off some warnings-problematic debug statements in ndp.c; the code
is non-functional anyway.
Diffstat (limited to 'src/net/ndp.c')
-rw-r--r--src/net/ndp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/ndp.c b/src/net/ndp.c
index 314a898f..8bea8b32 100644
--- a/src/net/ndp.c
+++ b/src/net/ndp.c
@@ -80,8 +80,7 @@ add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
memset ( ndp->ll_addr, 0, netdev->ll_protocol->ll_addr_len );
}
ndp->state = state;
- DBG ( "New neighbour cache entry (%d): IP6 %s => %s %s\n",
- ( ndp - ndp_table ),
+ DBG ( "New neighbour cache entry: IP6 %s => %s %s\n",
inet6_ntoa ( ndp->in6 ), netdev->ll_protocol->name,
netdev->ll_protocol->ntoa ( ndp->ll_addr ) );
}
@@ -118,8 +117,7 @@ int ndp_resolve ( struct net_device *netdev, struct in6_addr *dest,
/* Check if the entry was already created */
if ( ndp ) {
- DBG ( "Awaiting neighbour advertisement (cache entry %d)\n",
- ( ndp - ndp_table ) );
+ DBG ( "Awaiting neighbour advertisement\n" );
/* For test */
// ndp->state = NDP_STATE_REACHABLE;
// memcpy ( ndp->ll_addr, netdev->ll_addr, 6 );