]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Print square brackets around the tag value in RADIUS strings 404/head
authorHerwin Weststrate <[email protected]>
Mon, 1 Sep 2014 14:25:04 +0000 (16:25 +0200)
committerHerwin Weststrate <[email protected]>
Mon, 1 Sep 2014 14:25:04 +0000 (16:25 +0200)
Before, VLAN attributes that had a tag 1 looked like this:

  Tunnel Medium Attribute (65), length: 6, Value: Tag[1]802
  Tunnel Private Group Attribute (81), length: 4, Value: Tag 14

With the Tunnel-Medium-Type attribute (65), it is clear where the tag ends and the value begins. With this patch, the value for a string type (like Tunnel-Private-Group-Id) looks similar:

  Tunnel Private Group Attribute (81), length: 4, Value: Tag[1]4

print-radius.c

index 7855fa269c1e7fd88f4efb475d10acc4ecbef3bd..0093f3cd89741b760c02ab4f1a851f4154f23dd4 100644 (file)
@@ -477,7 +477,7 @@ print_attr_string(netdissect_options *ndo,
                  ND_PRINT((ndo, "%s", tstr));
                  return;
               }
-              ND_PRINT((ndo, "Tag %u", *data));
+              ND_PRINT((ndo, "Tag[%u]", *data));
               data++;
               length--;
            }