]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobility.c
Add program_name field in the netdissect_options structure
[tcpdump] / print-mobility.c
index 787d04092a1a165a761fb487bf5c0fb1e16f5cdb..58dabe11755293b4ea31c92b63f6b5f8f777e92a 100644 (file)
@@ -35,9 +35,9 @@
 #include <tcpdump-stdinc.h>
 
 #include "ip6.h"
-#include "interface.h"
+#include "netdissect.h"
 #include "addrtoname.h"
-#include "extract.h"           /* must come after interface.h */
+#include "extract.h"
 
 /* Mobility header */
 struct ip6_mobility {
@@ -198,7 +198,7 @@ mobility_print(netdissect_options *ndo,
        unsigned mhlen, hlen;
        uint8_t type;
 
-       mh = (struct ip6_mobility *)bp;
+       mh = (const struct ip6_mobility *)bp;
 
        /* 'ep' points to the end of available data. */
        ep = ndo->ndo_snapend;