X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6ec72b9d783fb2bf25298d3d8c7c1ec8cb77e235..d6bfd142e9c106deaf9c0091f8b5d0d89a0674ff:/print-arp.c diff --git a/print-arp.c b/print-arp.c index 0ca86cfc..b5047a0d 100644 --- a/print-arp.c +++ b/print-arp.c @@ -99,7 +99,7 @@ struct arp_pkthdr { #define TPA(ap) (ar_tpa(ap)) -struct tok arpop_values[] = { +static const struct tok arpop_values[] = { { ARPOP_REQUEST, "Request" }, { ARPOP_REPLY, "Reply" }, { ARPOP_REVREQUEST, "Reverse Request" }, @@ -110,7 +110,7 @@ struct tok arpop_values[] = { { 0, NULL } }; -struct tok arphrd_values[] = { +static const struct tok arphrd_values[] = { { ARPHRD_ETHER, "Ethernet" }, { ARPHRD_IEEE802, "TokenRing" }, { ARPHRD_ARCNET, "ArcNet" }, @@ -318,6 +318,7 @@ arp_print(netdissect_options *ndo, return; case ARPHRD_FRELAY: linkaddr = LINKADDR_FRELAY; + break; default: linkaddr = LINKADDR_ETHER; break;