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 ) );
}
/* 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 );