X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..9bdbb51f4122817ca8bdba9fb9917969809ff451:/print-mobility.c diff --git a/print-mobility.c b/print-mobility.c index 8311a03a..1490b72e 100644 --- a/print-mobility.c +++ b/print-mobility.c @@ -31,6 +31,10 @@ #include "config.h" #endif +#ifndef lint +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-mobility.c,v 1.12 2005-04-20 22:21:00 guy Exp $"; +#endif #ifdef INET6 #include @@ -43,10 +47,6 @@ #include "addrtoname.h" #include "extract.h" /* must come after interface.h */ -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-mobility.c,v 1.10 2003-11-15 00:39:31 guy Exp $"; -#endif /* Mobility header */ struct ip6_mobility { u_int8_t ip6m_pproto; /* following payload protocol (for PG) */ @@ -168,15 +168,13 @@ trunc: * Mobility Header */ int -mobility_print(const u_char *bp, const u_char *bp2) +mobility_print(const u_char *bp, const u_char *bp2 _U_) { const struct ip6_mobility *mh; - const struct ip6_hdr *ip6; const u_char *ep; int mhlen, hlen, type; mh = (struct ip6_mobility *)bp; - ip6 = (struct ip6_hdr *)bp2; /* 'ep' points to the end of available data. */ ep = snapend;