X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c7415f9189e77eace13a80ca953bf3cffddc9013..fb8b947488c7f22b518de1df1a91e663dc7ab33c:/print-mobile.c diff --git a/print-mobile.c b/print-mobile.c index f217932a..816ffd6e 100644 --- a/print-mobile.c +++ b/print-mobile.c @@ -41,18 +41,12 @@ #endif #ifndef lint -static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-mobile.c,v 1.7 2001-08-20 17:53:54 fenner Exp $"; +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 -#include -#include -#include +#include -#include - -#include #include #include "interface.h" @@ -83,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; } @@ -95,7 +89,7 @@ mobile_print(const u_char *bp, u_int length) osp=1; cp +=4 ; } - + if (osp) { fputs("[S] ",stdout); if (vflag)