]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobility.c
More UNALIGNED_MEM{CPY,CMP} on IP addresses.
[tcpdump] / print-mobility.c
index a63e574d5c76ea9ad78c98edd1fc9323f10f2c9b..d4dfcc0c07a06a7f88024410fd32b068251d8829 100644 (file)
 #include "config.h"
 #endif
 
-#ifndef lint
-static const char rcsid[] _U_ =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-mobility.c,v 1.12 2005-04-20 22:21:00 guy Exp $";
-#endif
-
 #ifdef INET6
 #include <tcpdump-stdinc.h>
 
@@ -65,6 +60,8 @@ struct ip6_mobility {
 
 #define IP6M_MINLEN    8
 
+/* http://www.iana.org/assignments/mobility-parameters/mobility-parameters.xhtml */
+
 /* message type */
 #define IP6M_BINDING_REQUEST   0       /* Binding Refresh Request */
 #define IP6M_HOME_TEST_INIT    1       /* Home Test Init */
@@ -75,6 +72,11 @@ struct ip6_mobility {
 #define IP6M_BINDING_ACK       6       /* Binding Acknowledgement */
 #define IP6M_BINDING_ERROR     7       /* Binding Error */
 
+/* XXX: unused */
+#define IP6MOPT_BU_MINLEN      10
+#define IP6MOPT_BA_MINLEN      13
+#define IP6MOPT_BR_MINLEN      2
+
 /* Mobility Header Options */
 #define IP6MOPT_MINLEN         2
 #define IP6MOPT_PAD1          0x0      /* Pad1 */