]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Note that we should perhaps also, in the heuristic test for a Fore 802.6
authorguy <guy>
Sun, 7 Apr 2002 10:05:40 +0000 (10:05 +0000)
committerguy <guy>
Sun, 7 Apr 2002 10:05:40 +0000 (10:05 +0000)
MAC header, treat 0xfe 0xfe 0x0e as the beginning of an LLC header
rather than the beginning of an 802.6 MAC header.

print-atm.c

index ee30b969da5385def025879ffb9f40736ba86b8c..9623ea71bc80b703e87788b971ceceb6ad1d65c0 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.22 2002-04-07 02:54:03 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.23 2002-04-07 10:05:40 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -107,7 +107,12 @@ atm_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
                goto out;
        }
        if (p[0] != 0xaa || p[1] != 0xaa || p[2] != 0x03) {
-               /*XXX assume 802.6 MAC header from fore driver */
+               /*
+                * XXX - assume 802.6 MAC header from Fore driver.
+                * XXX - should we also assume it's not a MAC header
+                * if it begins with 0xfe 0xfe 0x03, for RFC 2684
+                * routed NLPID-formatted PDUs?
+                */
                if (eflag)
                        printf("%04x%04x %04x%04x ",
                               p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3],