diff options
author | fenner <fenner@FreeBSD.org> | 2003-03-02 08:22:26 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 2003-03-02 08:22:26 +0000 |
commit | 5f76ebca43302f98858e83a6212d9c610e939bad (patch) | |
tree | c244ceda18deb5fc8e576971e1e83b7b631f5219 /contrib/tcpdump/print-esp.c | |
parent | 24ede2d805a7ffac09999aafe7d4f285e45a6edd (diff) | |
download | FreeBSD-src-5f76ebca43302f98858e83a6212d9c610e939bad.zip FreeBSD-src-5f76ebca43302f98858e83a6212d9c610e939bad.tar.gz |
Import tcpdump 3.7.2 (fudging for multi-DLT support) from
http://www.tcpdump.org/release/tcpdump-3.7.2.tar.gz
Diffstat (limited to 'contrib/tcpdump/print-esp.c')
-rw-r--r-- | contrib/tcpdump/print-esp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/tcpdump/print-esp.c b/contrib/tcpdump/print-esp.c index 33edf8a..b486346 100644 --- a/contrib/tcpdump/print-esp.c +++ b/contrib/tcpdump/print-esp.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.20 2002/01/21 11:39:59 mcr Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.20.4.2 2002/02/22 09:26:27 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -35,6 +35,7 @@ static const char rcsid[] = #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> +#include <stdlib.h> #include <netinet/in.h> @@ -50,7 +51,6 @@ static const char rcsid[] = #endif #include <stdio.h> -#include <unistd.h> #include "ip.h" #include "esp.h" @@ -120,7 +120,7 @@ static int hex2byte(char *hexstring) } -void esp_print_decodesecret() +static void esp_print_decodesecret(void) { char *colon; int len, i; @@ -359,8 +359,8 @@ esp_print(register const u_char *bp, register const u_char *bp2, des_check_key = 1; des_set_odd_parity((void *)secret); - des_set_odd_parity((void *)secret+8); - des_set_odd_parity((void *)secret+16); + des_set_odd_parity((void *)(secret + 8)); + des_set_odd_parity((void *)(secret + 16)); if(des_set_key((void *)secret, s1) != 0) { printf("failed to schedule key 1\n"); } |