aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhannes <hannes@localhost>1999-03-30 20:40:12 +0000
committerhannes <hannes@localhost>1999-03-30 20:40:12 +0000
commitccba477d7fbd4dc69691fa6329770a6e110d7940 (patch)
tree3a8a0147d31ada2c5a6e2cfd617efa876e26bfbe
parent2ffe6f0ffe814f7ba67be63dbaee5e31e3f6fc8e (diff)
Bugfix: The IP Precedence (first three bits in the TOS field) has been cleared
by accident -> It should be displayed correctly with this fix svn path=/trunk/; revision=234
-rw-r--r--packet-ip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-ip.c b/packet-ip.c
index 0c1b325ec1..8915201d9c 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.19 1999/03/28 18:31:58 gram Exp $
+ * $Id: packet-ip.c,v 1.20 1999/03/30 20:40:12 hannes Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -605,8 +605,7 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
if (check_col(fd, COL_UNRES_NET_DST))
col_add_str(fd, COL_UNRES_NET_DST, ip_to_str((guint8 *) &iph.ip_dst));
- iph.ip_tos = IPTOS_TOS(iph.ip_tos);
- switch (iph.ip_tos) {
+ switch (IPTOS_TOS(iph.ip_tos)) {
case IPTOS_NONE:
strcpy(tos_str, "None");
break;