diff options
author | guy <guy> | 2004-03-23 07:15:36 +0000 |
---|---|---|
committer | guy <guy> | 2004-03-23 07:15:36 +0000 |
commit | 8234cdad9b3f82b4fadd2fd882f8b7280d412b1b (patch) | |
tree | 95485173e348506a293a83f10ec8768f065699fb /tcp.h | |
parent | cbb5972bee25da4364126b3fb86d72d48978e277 (diff) | |
download | tcpdump-8234cdad9b3f82b4fadd2fd882f8b7280d412b1b.tar.gz |
From Bruce M. Simpson: add a "-M" flag to specify a shared secret for
TCP-MD5 (RFC 2385) digest verification if we have libcrypto.
Diffstat (limited to 'tcp.h')
-rw-r--r-- | tcp.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* @(#) $Header: /tcpdump/master/tcpdump/tcp.h,v 1.10 2002-12-11 07:14:11 guy Exp $ (LBL) */ +/* @(#) $Header: /tcpdump/master/tcpdump/tcp.h,v 1.11 2004-03-23 07:15:37 guy Exp $ (LBL) */ /* * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. @@ -75,6 +75,10 @@ struct tcphdr { #define TCPOPT_CC 11 /* T/TCP CC options (rfc1644) */ #define TCPOPT_CCNEW 12 /* T/TCP CC options (rfc1644) */ #define TCPOPT_CCECHO 13 /* T/TCP CC options (rfc1644) */ +#define TCPOPT_SIGNATURE 19 /* Keyed MD5 (rfc2385) */ +#define TCPOLEN_SIGNATURE 18 + +#define TCP_SIGLEN 16 /* length of an option 19 digest */ #define TCPOPT_TSTAMP_HDR \ (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP) |