]> The Tcpdump Group git mirrors - libpcap/commitdiff
Remove undocumented and rather old "ether proto" protocols 936/head
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 29 May 2020 11:45:21 +0000 (13:45 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 12 Jun 2020 07:31:55 +0000 (09:31 +0200)
They were never documented (at least since version 0.4 - 1999).

The only documented protocols are:
    ether proto protocol
          True if the packet is of ether type protocol.  Protocol can be a
          number  or  one  of the names aarp, arp, atalk, decnet, ip, ip6,
          ipx, iso, lat, mopdl, moprc, netbeui, rarp, sca  or  stp.
(pcap-filter man page)

They are rather old and unlikely to be found in a capture file.

Summary:

protocol value IANA ieee-802-numbers.xhtml
--------        -----   ---------------------------
decdns 803c DEC Unassigned
decdts 803e DEC Unassigned
lanbridge 8038 DEC LANBridge
pup 0200 XEROX PUP
sprite 0500 <Unkwown in IANA Registry>
vexp 805b Stanford V Kernel exp.
vprod 805c Stanford V Kernel prod.
xns 0600 XEROX NS IDP

nametoaddr.c

index 3e502af194045ad8c77ed9d84484d0d9a958a4b1..af849d80ff5e4fd5f1180ca829d4a478965c0310 100644 (file)
@@ -593,25 +593,17 @@ PCAP_API_DEF struct eproto eproto_db[] = {
        { "arp", ETHERTYPE_ARP },
        { "atalk", ETHERTYPE_ATALK },
        { "atalkarp", ETHERTYPE_AARP },
-       { "decdns", ETHERTYPE_DECDNS },
-       { "decdts", ETHERTYPE_DECDTS },
        { "decnet", ETHERTYPE_DN },
        { "ip", ETHERTYPE_IP },
 #ifdef INET6
        { "ip6", ETHERTYPE_IPV6 },
 #endif
-       { "lanbridge", ETHERTYPE_LANBRIDGE },
        { "lat", ETHERTYPE_LAT },
        { "loopback", ETHERTYPE_LOOPBACK },
        { "mopdl", ETHERTYPE_MOPDL },
        { "moprc", ETHERTYPE_MOPRC },
-       { "pup", ETHERTYPE_PUP },
        { "rarp", ETHERTYPE_REVARP },
        { "sca", ETHERTYPE_SCA },
-       { "sprite", ETHERTYPE_SPRITE },
-       { "vexp", ETHERTYPE_VEXP },
-       { "vprod", ETHERTYPE_VPROD },
-       { "xns", ETHERTYPE_NS },
        { (char *)0, 0 }
 };