From d8b11dc5608898589988108b81eded267fec085a Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Thu, 15 Jan 2004 12:27:08 +0000 Subject: print tcpmd5 signature options; with/ok itojun --- usr.sbin/tcpdump/print-tcp.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'usr.sbin/tcpdump') 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 @@ -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; -- cgit v1.2.3