X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..88afd2c20b0ff752a2203ee5df710d352c1756a2:/print-msdp.c?ds=inline diff --git a/print-msdp.c b/print-msdp.c index b7025452..a228ab7c 100644 --- a/print-msdp.c +++ b/print-msdp.c @@ -15,6 +15,10 @@ * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. */ +#ifndef lint +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-msdp.c,v 1.7 2005-04-06 21:32:41 mcr Exp $"; +#endif #ifdef HAVE_CONFIG_H #include "config.h" @@ -29,10 +33,6 @@ #include "addrtoname.h" #include "extract.h" -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-msdp.c,v 1.5 2003-11-15 00:39:32 guy Exp $"; -#endif #define MSDP_TYPE_MAX 7 void @@ -70,7 +70,7 @@ msdp_print(const unsigned char *sp, u_int length) (void)printf(" [w/data]"); if (vflag > 1) { (void)printf(" "); - ip_print(sp + *sp * 12 + 8 - 3, + ip_print(gndo, sp + *sp * 12 + 8 - 3, len - (*sp * 12 + 8)); } } @@ -99,3 +99,10 @@ msdp_print(const unsigned char *sp, u_int length) trunc: (void)printf(" [|msdp]"); } + +/* + * Local Variables: + * c-style: whitesmith + * c-basic-offset: 8 + * End: + */