diff options
author | sam <sam@FreeBSD.org> | 2005-07-11 03:54:22 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-07-11 03:54:22 +0000 |
commit | 357fae9fdf73c79a5782f504a8f5a3cac82c0557 (patch) | |
tree | b68926b8180e315dce4092f21e6a7e7e9344b68a /contrib/tcpdump/print-ospf.c | |
parent | 6c6937427c2191e884402043ff0843960687f7b2 (diff) | |
parent | 1166f90fe87cef69f7923a1b8c386eecdc6cb92b (diff) | |
download | FreeBSD-src-357fae9fdf73c79a5782f504a8f5a3cac82c0557.zip FreeBSD-src-357fae9fdf73c79a5782f504a8f5a3cac82c0557.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r147899,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/tcpdump/print-ospf.c')
-rw-r--r-- | contrib/tcpdump/print-ospf.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/tcpdump/print-ospf.c b/contrib/tcpdump/print-ospf.c index 5a217fe..9ac6c61 100644 --- a/contrib/tcpdump/print-ospf.c +++ b/contrib/tcpdump/print-ospf.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.56 2004/09/29 16:49:31 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.56.2.2 2005/05/06 07:57:19 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -873,15 +873,13 @@ trunc: void ospf_print(register const u_char *bp, register u_int length, - register const u_char *bp2) + const u_char *bp2 _U_) { register const struct ospfhdr *op; - register const struct ip *ip; register const u_char *dataend; register const char *cp; op = (struct ospfhdr *)bp; - ip = (struct ip *)bp2; /* XXX Before we do anything else, strip off the MD5 trailer */ TCHECK(op->ospf_authtype); @@ -934,8 +932,11 @@ ospf_print(register const u_char *bp, register u_int length, break; case OSPF_AUTH_SIMPLE: - (void)fn_printn(op->ospf_authdata, - sizeof(op->ospf_authdata), NULL); + if (fn_printn(op->ospf_authdata, + sizeof(op->ospf_authdata), snapend)) { + printf("\""); + goto trunc; + } printf("\""); break; |