aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-06-27 13:27:28 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-06-27 13:27:28 +0000
commitfca94d1d2d45eb83515179f14eb6453d2ddc8e44 (patch)
tree3443c6c4d1930e1261d64ff3053959edc7ee7371 /epan
parent2851255f539b670be6de47a3345bf1b25638cfc9 (diff)
From Martin Raison via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7414
PMIPV6 support over IPV4 network PMIPv6 is an extension of MIPv6, adding a certain number of options to the MIPv6 protocol. These options are already implemented in the wireshark dissector, and the MIPv6 headers are recognized, but only inside IPv6 packets. However, RFC5844 extends the PMIPv6 protocol to make it work over IPv4 networks : as explained in section 4 of this RFC, the MIPv6 message is carried inside an IPv4 packet with a UDP header. The port number in the UDP header is 5436 svn path=/trunk/; revision=43505
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-mip6.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mip6.c b/epan/dissectors/packet-mip6.c
index 553b699636..0047a0e646 100644
--- a/epan/dissectors/packet-mip6.c
+++ b/epan/dissectors/packet-mip6.c
@@ -41,6 +41,8 @@
#include <epan/expert.h>
#include <epan/sminmpec.h>
+#define UDP_PORT_PMIP6_CNTL 5436
+
/* Mobility Header types */
typedef enum {
MIP6_BRR = 0,
@@ -2501,5 +2503,7 @@ proto_reg_handoff_mip6(void)
mip6_handle = create_dissector_handle(dissect_mip6, proto_mip6);
dissector_add_uint("ip.proto", IP_PROTO_MIPV6_OLD, mip6_handle);
dissector_add_uint("ip.proto", IP_PROTO_MIPV6, mip6_handle);
+ /* Add support for PMIPv6 control messages over IPV4 */
+ dissector_add_uint("udp.port", UDP_PORT_PMIP6_CNTL, mip6_handle);
ip_dissector_table = find_dissector_table("ip.proto");
}