X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/69cb46af9119e8b5554bcc4bf1bf36f39cb82131..1a04b92e365f5ed01ca38619b41bcc4fc9cbd63c:/print-mobile.c diff --git a/print-mobile.c b/print-mobile.c index c06b84af..5f9f54fe 100644 --- a/print-mobile.c +++ b/print-mobile.c @@ -36,15 +36,17 @@ * POSSIBILITY OF SUCH DAMAGE. */ +/* \summary: IPv4 mobility printer */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include -#include "interface.h" +#include "netdissect.h" #include "addrtoname.h" -#include "extract.h" /* must come after interface.h */ +#include "extract.h" #define MOBILE_SIZE (8) @@ -76,8 +78,8 @@ mobile_print(netdissect_options *ndo, const u_char *bp, u_int length) } ND_PRINT((ndo, "mobile: ")); - proto = EXTRACT_16BITS(&mob->proto); - crc = EXTRACT_16BITS(&mob->hcheck); + proto = EXTRACT_BE_U_2(&mob->proto); + crc = EXTRACT_BE_U_2(&mob->hcheck); if (proto & OSRC_PRES) { osp=1; }