aboutsummaryrefslogtreecommitdiff
path: root/nametoaddr.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-06-18 21:58:14 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-06-21 09:45:05 +0200
commit23a2d990d9bce2123e4f6c39bee6f61c9617a3b5 (patch)
tree0326b15efe5ac6b967a3455db5be1cebcc84847e /nametoaddr.c
parent6d8a73fa3cd2d4c4656df6ca4207401bfb9678b3 (diff)
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.
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c2
1 files changed, 1 insertions, 1 deletions
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