aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vlan.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2006-01-20 08:48:43 +0000
committerJörg Mayer <jmayer@loplof.de>2006-01-20 08:48:43 +0000
commit256225d73f9b4740e9dac67a48ac8de6b9fb8b9a (patch)
treedf3d721e012cd3ce2b0ce83a21a55ef3329db7c4 /epan/dissectors/packet-vlan.c
parent3facb43c073fc330eea6238ac8fbcba6971bee97 (diff)
Mike Hall:
This will add the ability to configure a .1q vlan column in ethereal. Me: Change 1q -> 1Q svn path=/trunk/; revision=17058
Diffstat (limited to 'epan/dissectors/packet-vlan.c')
-rw-r--r--epan/dissectors/packet-vlan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-vlan.c b/epan/dissectors/packet-vlan.c
index f2f14dc116..8367cab8d7 100644
--- a/epan/dissectors/packet-vlan.c
+++ b/epan/dissectors/packet-vlan.c
@@ -82,6 +82,9 @@ dissect_vlan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_add_fstr(pinfo->cinfo, COL_INFO, "PRI: %d CFI: %d ID: %d",
(tci >> 13), ((tci >> 12) & 1), (tci & 0xFFF));
}
+ if ( check_col(pinfo->cinfo, COL_8021Q_VLAN_ID)) {
+ col_add_fstr(pinfo->cinfo, COL_8021Q_VLAN_ID, "%u", (tci & 0xFFF));
+ }
vlan_tree = NULL;