diff options
author | Jun-ichiro itojun Hagino <itojun@itojun.org> | 1999-10-14 03:50:51 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@itojun.org> | 1999-10-14 03:50:51 +0000 |
commit | 810a67a6d047552ef5a023e05064b634151ed1ad (patch) | |
tree | 212255bd6b2aa91e791440a3ecd8c0557731a0bb /packet-ipsec.c | |
parent | 92907001c39020cbd99ceffe5c8a75c3213ea581 (diff) | |
download | wireshark-810a67a6d047552ef5a023e05064b634151ed1ad.tar.gz wireshark-810a67a6d047552ef5a023e05064b634151ed1ad.tar.bz2 wireshark-810a67a6d047552ef5a023e05064b634151ed1ad.zip |
implement ipprotostr() in ipproto.c, which basically does ipprotobynumber()
for ip.ip_p and ip6.ip6_nxt (and other IPv6 header chain).
use val_to_str() as much as possible in dissect_{ipv6,pim,ripng}().
make --disable-zlib a default for netbsd (temporary workaround).
svn path=/trunk/; revision=827
Diffstat (limited to 'packet-ipsec.c')
-rw-r--r-- | packet-ipsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ipsec.c b/packet-ipsec.c index eb6173066a..9d9bef8fd9 100644 --- a/packet-ipsec.c +++ b/packet-ipsec.c @@ -1,7 +1,7 @@ /* packet-ipsec.c * Routines for IPsec packet disassembly * - * $Id: packet-ipsec.c,v 1.5 1999/10/12 06:20:09 gram Exp $ + * $Id: packet-ipsec.c,v 1.6 1999/10/14 03:50:29 itojun Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -96,7 +96,7 @@ dissect_ah(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) ah_tree = proto_item_add_subtree(ti, ETT_AH); proto_tree_add_text(ah_tree, offset + offsetof(struct newah, ah_nxt), 1, - "Next Header: %d", ah.ah_nxt); + "Next Header: %s (0x%02x)", ipprotostr(ah.ah_nxt), ah.ah_nxt); proto_tree_add_text(ah_tree, offset + offsetof(struct newah, ah_len), 1, "Length: %d", ah.ah_len << 2); proto_tree_add_item_format(ah_tree, hf_ah_spi, |