mirror of
https://github.com/ipxe/ipxe
synced 2026-05-16 15:00:48 +03:00
[neighbour] Use discovery protocol field to identify incomplete neighbours
Use the discovery protocol pointer field (rather than the running state of the discovery timer) to determine whether or not neighbour discovery is ongoing, as a precursor to allowing the timer to be (ab)used for adding deliberate latency to transmitted packets. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
+2
-3
@@ -50,9 +50,8 @@ void nstat ( void ) {
|
||||
printf ( "%s %s %s is %s %s", netdev->name, net_protocol->name,
|
||||
net_protocol->ntoa ( neighbour->net_dest ),
|
||||
ll_protocol->name,
|
||||
( neighbour_has_ll_dest ( neighbour ) ?
|
||||
ll_protocol->ntoa ( neighbour->ll_dest ) :
|
||||
"(incomplete)" ) );
|
||||
( neighbour->discovery ? "(incomplete)" :
|
||||
ll_protocol->ntoa ( neighbour->ll_dest ) ) );
|
||||
if ( neighbour->discovery )
|
||||
printf ( " (%s)", neighbour->discovery->name );
|
||||
printf ( "\n" );
|
||||
|
||||
Reference in New Issue
Block a user