diff options
author | hannes <hannes@localhost> | 1999-03-30 20:40:12 +0000 |
---|---|---|
committer | hannes <hannes@localhost> | 1999-03-30 20:40:12 +0000 |
commit | ccba477d7fbd4dc69691fa6329770a6e110d7940 (patch) | |
tree | 3a8a0147d31ada2c5a6e2cfd617efa876e26bfbe /packet-ip.c | |
parent | 2ffe6f0ffe814f7ba67be63dbaee5e31e3f6fc8e (diff) | |
download | wireshark-ccba477d7fbd4dc69691fa6329770a6e110d7940.tar.gz wireshark-ccba477d7fbd4dc69691fa6329770a6e110d7940.tar.bz2 wireshark-ccba477d7fbd4dc69691fa6329770a6e110d7940.zip |
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
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 5 |
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; |