show arp: print the vendor's Type column between the hardware address and the interface #1625
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!1625
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1116-0700"
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?
The ARP table has six columns in Cisco's own field list - Protocol, Address, Age (min), Hardware Addr, Type, Interface - where Type is ARPA (Ethernet), SNAP (RFC 1042) or SAP (802.3). This console printed five: Type was absent, so a row could not be compared field-for-field against a box's and the encapsulation was never stated.
Type now prints in the vendor's position, filled with
ARPA- the only value this model can honestly produce, because SNAP/SAP are encapsulation on Token Ring/FDDI media the catalogue does not carry, and every binding learned here is IPv4 over 802.3 framing. Header and rows are padded from the same widths so the word lands under its heading.Evidence
Changes: engine/cli.js (one header line, one row line), test/show-arp.test.js (new section: the column is named in position, rows read ARPA, and the value aligns under the heading; column counts 5 to 6), test/arp-ageing.test.js (column indices), docs/CLI.md and docs/ARCHITECTURE.md samples, research/show-arp-type-column.md.
Gates:
node scripts/syntax-check.js342 files OK; fullnpm test272 suites, 9796 assertions, 0 failed.Unresolved (written up, not invented): incomplete (
0 Incomplete ARPA) and PROBE entries are not modelled by the data path, so only learned bindings can appear.test probeto show arp: print the Type columnshow arp: print the Type columnto show arp: print the vendor's Type column between the hardware address and the interfacecae1aaa40336dbe9c9b136dbe9c9b1e5a68f6a1f