diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-01-15 12:27:08 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-01-15 12:27:08 +0000 |
commit | d8b11dc5608898589988108b81eded267fec085a (patch) | |
tree | aa1bdd1ec20745500b4e197a58295234d0a0a2e6 /usr.sbin/tcpdump | |
parent | 1dd17a760dab22186969d84d9d483b84a1942df6 (diff) |
print tcpmd5 signature options; with/ok itojun
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/print-tcp.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-tcp.c b/usr.sbin/tcpdump/print-tcp.c index 0c9e9a88753..ef807fc4a5a 100644 --- a/usr.sbin/tcpdump/print-tcp.c +++ b/usr.sbin/tcpdump/print-tcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-tcp.c,v 1.18 2003/10/12 10:58:25 dhartmei Exp $ */ +/* $OpenBSD: print-tcp.c,v 1.19 2004/01/15 12:27:07 markus Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-tcp.c,v 1.18 2003/10/12 10:58:25 dhartmei Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-tcp.c,v 1.19 2004/01/15 12:27:07 markus Exp $ (LBL)"; #endif #include <sys/param.h> @@ -572,6 +572,15 @@ tcp_print(register const u_char *bp, register u_int length, (void)printf(" %u", EXTRACT_32BITS(cp)); break; + case TCPOPT_SIGNATURE: + (void)printf("tcpmd5:"); + datalen = len - 2; + for (i = 0; i < datalen; ++i) { + LENCHECK(i); + (void)printf("%02x", cp[i]); + } + break; + default: (void)printf("opt-%d:", opt); datalen = len - 2; |