aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ip.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-08-28 02:33:47 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-08-28 02:33:47 +0000
commit6f46f57ff182cd2e96f7d6de0d92dfc4a926c421 (patch)
tree89d71809ee76f63d6fc47344ff492e5b4c101269 /packet-ip.c
parentb5ee65e1a8379507bec1fc0473541ae88ba15e6c (diff)
Set protocol column to "IP" for fragmented IP packets. It was not being set at
the IP layer, leaving the lower layer's abbreviation in the protocol column. svn path=/trunk/; revision=599
Diffstat (limited to 'packet-ip.c')
-rw-r--r--packet-ip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-ip.c b/packet-ip.c
index 54332d5025..b2757c3447 100644
--- a/packet-ip.c
+++ b/packet-ip.c
@@ -1,7 +1,7 @@
/* packet-ip.c
* Routines for IP and miscellaneous IP protocol packet disassembly
*
- * $Id: packet-ip.c,v 1.40 1999/08/26 17:31:37 gram Exp $
+ * $Id: packet-ip.c,v 1.41 1999/08/28 02:33:47 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -783,6 +783,8 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
nxt = iph.ip_p;
if (iph.ip_off & IP_OFFSET) {
/* fragmented */
+ if (check_col(fd, COL_PROTOCOL))
+ col_add_str(fd, COL_PROTOCOL, "IP");
if (check_col(fd, COL_INFO))
col_add_fstr(fd, COL_INFO, "Fragmented IP protocol (proto=%02x, off=%d)",
iph.ip_p, iph.ip_off & IP_OFFSET);