diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-12-15 23:17:01 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-12-15 23:17:01 +0000 |
commit | 4abc441daf9a610d1fa3459658450be355c01d1e (patch) | |
tree | c8ece53a8ba4774fb340b4d9b5e44f3e86f441ff /epan/dissectors/packet-ip.c | |
parent | b73f418aee939a5d82a82f441f0cc7531941b028 (diff) |
from Jaap K
fix for bug 306
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16812 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ip.c')
-rw-r--r-- | epan/dissectors/packet-ip.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |