diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2006-12-11 20:24:51 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2006-12-11 20:24:51 +0000 |
commit | f4e0b64fe7e13ba98caa6d915e88b795de633426 (patch) | |
tree | 8a3dbf70b4c62e0c8b6942f259c618f808372302 /epan/dissectors/packet-vlan.c | |
parent | 41c5011f5bdc89c097b5026bd3e46dfe2bb60282 (diff) |
From Thomas Sillaber:
Create two new columns: IP DSCP and L2 COS (802.1p)
svn path=/trunk/; revision=20118
Diffstat (limited to 'epan/dissectors/packet-vlan.c')
-rw-r--r-- | epan/dissectors/packet-vlan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-vlan.c b/epan/dissectors/packet-vlan.c index 3d21494271..d53217f06d 100644 --- a/epan/dissectors/packet-vlan.c +++ b/epan/dissectors/packet-vlan.c @@ -91,6 +91,9 @@ dissect_vlan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if ( check_col(pinfo->cinfo, COL_8021Q_VLAN_ID)) { col_add_fstr(pinfo->cinfo, COL_8021Q_VLAN_ID, "%u", (tci & 0xFFF)); } + if ( check_col(pinfo->cinfo, COL_COS_VALUE)) { + col_add_fstr(pinfo->cinfo, COL_COS_VALUE, "%u", (tci >> 13)); + } vlan_tree = NULL; |