From 4abc441daf9a610d1fa3459658450be355c01d1e Mon Sep 17 00:00:00 2001 From: sahlberg Date: Thu, 15 Dec 2005 23:17:01 +0000 Subject: from Jaap K fix for bug 306 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16812 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-ip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-ip.c') diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c index 5773381e1e..bde9f3bc83 100644 --- a/epan/dissectors/packet-ip.c +++ b/epan/dissectors/packet-ip.c @@ -1717,6 +1717,7 @@ dissect_icmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) break; case ICMP_RTRADVERT: switch (icmp_code) { + case 0: /* Mobile-Ip */ case 16: /* Mobile-Ip */ type_str="Mobile IP Advertisement"; break; @@ -1912,7 +1913,7 @@ dissect_icmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_text(icmp_tree, tvb, 12 + (i*8), 4, "Preference level: %d", tvb_get_ntohl(tvb, 12 + (i*8))); } - if (icmp_code == 16) { + if ((icmp_code == 0) || (icmp_code == 16)) { /* Mobile-Ip */ dissect_mip_extensions(tvb, 8 + i*8, icmp_tree); } -- cgit v1.2.3