X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..3b97eb047bfcee083e490e19c72f11fec4bd7a02:/print-frag6.c diff --git a/print-frag6.c b/print-frag6.c index 43509510..11e884b7 100644 --- a/print-frag6.c +++ b/print-frag6.c @@ -19,6 +19,10 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +#ifndef lint +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-frag6.c,v 1.19 2003-11-19 00:36:07 guy Exp $"; +#endif #ifdef HAVE_CONFIG_H #include "config.h" @@ -36,10 +40,6 @@ #include "addrtoname.h" #include "extract.h" -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-frag6.c,v 1.17 2003-11-15 00:39:23 guy Exp $"; -#endif int frag6_print(register const u_char *bp, register const u_char *bp2) { @@ -71,7 +71,7 @@ frag6_print(register const u_char *bp, register const u_char *bp2) #if 1 /* it is meaningless to decode non-first fragment */ if ((EXTRACT_16BITS(&dp->ip6f_offlg) & IP6F_OFF_MASK) != 0) - return 65535; + return -1; else #endif { @@ -80,7 +80,7 @@ frag6_print(register const u_char *bp, register const u_char *bp2) } trunc: fputs("[|frag]", stdout); - return 65535; + return -1; #undef TCHECK } #endif /* INET6 */