show arp names no interface, and calls a stale neighbour reachable #1253
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
show arpis the table you read when a neighbour answers but traffic still dies. It has five columns andprints three:
The Interface column is a header over nothing — every row stops at the MAC — so the one table that
could tell you which port a neighbour lives on cannot tell you. The engine had the same gap:
Device.arpisMap(ip -> mac), and nothing recorded which port the frame arrived on, even though the ARP handler hasinIfacein scope at all three learning sites.Every entry is also presented identically whether its port is up, shut, or has no cable. A stale cache
entry therefore reads as evidence that the address is reachable — which is exactly the belief someone is
checking when they run the command.
Expected
call site cannot forget it);
show arpprints it, and appends the reason when that port can no longer carry a frame —(administratively down),(down: no cable),(down: link down),(down: peer shut down);pulled, and the state is what marks it stale;
-rather than a guess; aport that no longer exists prints its name and
(gone);Age (min)stays-: the simulator counts steps, not minutes, and a step count in a minutes column is anumber with the wrong unit.
Scope
The existing ARP table and the existing learning path. No new commands.
show arpnames the port, and says when the neighbour is stale (#1253) #1254