X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/99c91c3aec40b691641374f58e798bd8d6b657bd..1a04b92e365f5ed01ca38619b41bcc4fc9cbd63c:/print-mobile.c diff --git a/print-mobile.c b/print-mobile.c index 885e4dd2..5f9f54fe 100644 --- a/print-mobile.c +++ b/print-mobile.c @@ -36,6 +36,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ +/* \summary: IPv4 mobility printer */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -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; }