]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobile.c
When checking for pcap_if_t, add $V_INCLS to CFLAGS, so we look at the
[tcpdump] / print-mobile.c
index 31a98cdbca3cf26b6d3713f50bb716dd6fec6304..816ffd6e65859917f76da3960b47629d2557a6c7 100644 (file)
 #include "config.h"
 #endif
 
+#ifndef lint
+static const char rcsid[] _U_ =
+     "@(#) $Header: /tcpdump/master/tcpdump/print-mobile.c,v 1.15 2004-03-24 01:58:14 guy Exp $";
+#endif
 
 #include <tcpdump-stdinc.h>
 
 #include "addrtoname.h"
 #include "extract.h"           /* must come after interface.h */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-mobile.c,v 1.13 2003-11-15 00:39:31 guy Exp $";
-#endif
 #define MOBILE_SIZE (8)
 
 struct mobile_ip {
@@ -77,7 +77,7 @@ mobile_print(const u_char *bp, u_int length)
 
        mob = (const struct mobile_ip *)bp;
 
-       if (length < MOBILE_SIZE) {
+       if (length < MOBILE_SIZE || !TTEST(*mob)) {
                fputs("[|mobile]", stdout);
                return;
        }