]> The Tcpdump Group git mirrors - tcpdump/commitdiff
display I/G bit
authorhannes <hannes>
Thu, 1 Dec 2005 18:05:12 +0000 (18:05 +0000)
committerhannes <hannes>
Thu, 1 Dec 2005 18:05:12 +0000 (18:05 +0000)
print-llc.c

index d0ae8b209aa27fca8c44dc404cb3d87146211af3..039c9f4993d601bccd19287a65c3f49b01e08a85 100644 (file)
@@ -24,7 +24,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-llc.c,v 1.68 2005-12-01 17:45:45 hannes Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-llc.c,v 1.69 2005-12-01 18:05:12 hannes Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -86,6 +86,13 @@ static const struct tok llc_flag_values[] = {
 };
 
 
+static const struct tok llc_ig_flag_values[] = { 
+        { 0, "Individual" },
+        { LLC_IG, "Group" },
+       { 0, NULL }
+};
+
+
 static const struct tok llc_supervisory_values[] = { 
         { 0, "Receiver Ready" },
         { 1, "Receiver not Ready" },
@@ -208,9 +215,10 @@ llc_print(const u_char *p, u_int length, u_int caplen,
        ssap = ssap_field & ~LLC_GSAP;
 
        if (eflag) {
-                printf("LLC, dsap %s (0x%02x), ssap %s (0x%02x) %s",
+                printf("LLC, dsap %s (0x%02x) %s, ssap %s (0x%02x) %s",
                        tok2str(llc_values, "Unknown", dsap),
                        dsap,
+                       tok2str(llc_ig_flag_values, "Unknown", dsap_field & LLC_IG),
                        tok2str(llc_values, "Unknown", ssap),
                        ssap,
                        tok2str(llc_flag_values, "Unknown", ssap_field & LLC_GSAP));