mirror of https://github.com/ipxe/ipxe.git
Kill off some warnings-problematic debug statements in ndp.c; the code
is non-functional anyway.pull/1/head
parent
6b0e147e0d
commit
798f7f6b8e
|
@ -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 );
|
memset ( ndp->ll_addr, 0, netdev->ll_protocol->ll_addr_len );
|
||||||
}
|
}
|
||||||
ndp->state = state;
|
ndp->state = state;
|
||||||
DBG ( "New neighbour cache entry (%d): IP6 %s => %s %s\n",
|
DBG ( "New neighbour cache entry: IP6 %s => %s %s\n",
|
||||||
( ndp - ndp_table ),
|
|
||||||
inet6_ntoa ( ndp->in6 ), netdev->ll_protocol->name,
|
inet6_ntoa ( ndp->in6 ), netdev->ll_protocol->name,
|
||||||
netdev->ll_protocol->ntoa ( ndp->ll_addr ) );
|
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 */
|
/* Check if the entry was already created */
|
||||||
if ( ndp ) {
|
if ( ndp ) {
|
||||||
DBG ( "Awaiting neighbour advertisement (cache entry %d)\n",
|
DBG ( "Awaiting neighbour advertisement\n" );
|
||||||
( ndp - ndp_table ) );
|
|
||||||
/* For test */
|
/* For test */
|
||||||
// ndp->state = NDP_STATE_REACHABLE;
|
// ndp->state = NDP_STATE_REACHABLE;
|
||||||
// memcpy ( ndp->ll_addr, netdev->ll_addr, 6 );
|
// memcpy ( ndp->ll_addr, netdev->ll_addr, 6 );
|
||||||
|
|
Loading…
Reference in New Issue