From 23a2d990d9bce2123e4f6c39bee6f61c9617a3b5 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Thu, 18 Jun 2020 21:58:14 +0200 Subject: Fix "unknown ether proto 'aarp'" 'aarp' is documented in the pcap-filter man page and defined in scanner.l. 'atalkarp' was never documented or defined as lexeme. With this change, the filters "aarp" and "ether proto \aarp" give the same result as documented and expected. --- nametoaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nametoaddr.c') diff --git a/nametoaddr.c b/nametoaddr.c index af849d80..c944ad36 100644 --- a/nametoaddr.c +++ b/nametoaddr.c @@ -590,9 +590,9 @@ struct eproto { */ PCAP_API struct eproto eproto_db[]; PCAP_API_DEF struct eproto eproto_db[] = { + { "aarp", ETHERTYPE_AARP }, { "arp", ETHERTYPE_ARP }, { "atalk", ETHERTYPE_ATALK }, - { "atalkarp", ETHERTYPE_AARP }, { "decnet", ETHERTYPE_DN }, { "ip", ETHERTYPE_IP }, #ifdef INET6 -- cgit v1.2.3