Commit Graph

9 Commits

Author SHA1 Message Date
Denis Ovsienko
67c3191b49 Add a vendor document URL to print-arista.c. [skip ci] 2022-06-21 22:48:26 +01:00
Denis Ovsienko
a807516f33 Arista: Refine the output format and print HwInfo.
See pull request GH#955.

Add a comment with the Timestamp packet diagram.  Define
ARISTA_SUBTYPE_TIMESTAMP as a two-byte integer, same as it is on the
wire.  Break the version field into three fields and add printing of
HwInfo.  Lose an unused variable and a few named constants.  When
carrying whole seconds over from nanoseconds, use a large enough type
for seconds and do not forget to correct nanoseconds afterwards.  Print
all fields using tok2str() and DHCP-like format.  Update the associated
tests.
2022-04-14 15:49:11 +01:00
Denis Ovsienko
9169e4e194 Include <string.h> only if required. 2020-10-17 17:55:37 +01:00
Guy Harris
8970b94b11 Include the right config.h.
Use angle brackets so that, for example, if we do a CMake build in a
subdirectory, and the parent directory has an autotools build in it, we
pick up the config.h from the CMake run, not from the autotools run.
2020-04-25 16:48:36 -07:00
Francois-Xavier Le Bail
8dbfd7f299 Use quoted include netdissect-stdinc.h instead of angle-bracketed one 2019-09-02 14:42:16 +02:00
Francois-Xavier Le Bail
3cfcdc45ed Arista: Remove unused "interface.h" include 2019-09-02 11:12:59 +02:00
niks3089
a38033a59b Support 2 new versions for arista ethertype and print time in utc 2019-07-15 08:59:44 +02:00
Francois-Xavier Le Bail
0636ecf913 Arista: Rename a printer
Rename arista_print_ethertype() to arista_ethertype_print(), with _print
suffix like in most similar cases.

Moreover:
Add a 'summary' comment with the protocol name.
2019-05-23 11:23:37 +02:00
niks3089
e2f14ebc87 New ethertype protocol for Arista Networks 2019-05-23 11:06:14 +02:00