aboutsummaryrefslogtreecommitdiffstats
path: root/packet-vj.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-05-18 21:19:48 +0000
committerGuy Harris <guy@alum.mit.edu>2002-05-18 21:19:48 +0000
commit1606d119fbe15d5d14635d1deff1726b0c183e30 (patch)
treea980d49f46e913abd0aaf893dcc428dceb832e0a /packet-vj.c
parente63d569f572e3483b656ad9a645ae70273fd25a1 (diff)
Set the Info column for compressed and uncompressed TCP.
svn path=/trunk/; revision=5504
Diffstat (limited to 'packet-vj.c')
-rw-r--r--packet-vj.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/packet-vj.c b/packet-vj.c
index 78da877fcf..fff8e31287 100644
--- a/packet-vj.c
+++ b/packet-vj.c
@@ -1,7 +1,7 @@
/* packet-vj.c
* Routines for Van Jacobson header decompression.
*
- * $Id: packet-vj.c,v 1.7 2002/04/14 23:22:22 guy Exp $
+ * $Id: packet-vj.c,v 1.8 2002/05/18 21:19:48 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -209,6 +209,12 @@ dissect_vjuc(tvbuff_t *tvb, packet_info *pinfo, proto_tree * tree)
gint conn_index = ZERO;
gint err = VJ_OK;
+ /*
+ * XXX - add error information to the Info column?
+ */
+ if(check_col(pinfo->cinfo, COL_INFO))
+ col_set_str(pinfo->cinfo, COL_INFO, "VJ uncompressed TCP");
+
/* Return if VJ is off or direction is not known */
if(ppp_vj_decomp == FALSE || pinfo->p2p_dir == P2P_DIR_UNKNOWN)
err = VJ_ERROR;
@@ -242,7 +248,13 @@ dissect_vjc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
tvbuff_t *next_tvb = NULL;
slcompress *comp = NULL;
gint err = VJ_OK;
-
+
+ /*
+ * XXX - add error information to the Info column?
+ */
+ if(check_col(pinfo->cinfo, COL_INFO))
+ col_set_str(pinfo->cinfo, COL_INFO, "VJ compressed TCP");
+
/* Return if VJ is off or direction is not known */
if(ppp_vj_decomp == FALSE || pinfo->p2p_dir == P2P_DIR_UNKNOWN)
err = VJ_ERROR;