From 6028b023338d05b45a0acd124249a6b3ac7495f5 Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Thu, 3 May 2012 10:17:24 +0000 Subject: esp/ah sequence number is unsigned and should be printed as such; ok haesbaert, sthen, yasuoka, mpf --- usr.sbin/tcpdump/print-ipsec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/tcpdump/print-ipsec.c b/usr.sbin/tcpdump/print-ipsec.c index 5e8eea70d26..a4d1ed45eb8 100644 --- a/usr.sbin/tcpdump/print-ipsec.c +++ b/usr.sbin/tcpdump/print-ipsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ipsec.c,v 1.16 2010/04/06 16:01:57 jsg Exp $ */ +/* $OpenBSD: print-ipsec.c,v 1.17 2012/05/03 10:17:23 mikeb Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 @@ -230,7 +230,7 @@ esp_print (register const u_char *bp, register u_int len, } esp = (const struct esp_hdr *)bp; - printf(" spi 0x%08x seq %d len %d", + printf(" spi 0x%08x seq %u len %d", ntohl(esp->esp_spi), ntohl(esp->esp_seq), len); if (espinit) @@ -278,7 +278,7 @@ ah_print (register const u_char *bp, register u_int len, } ah = (const struct ah_hdr *)bp; - printf(" spi 0x%08X seq %d len %d", + printf(" spi 0x%08x seq %u len %d", ntohl(ah->ah_spi), ntohl(ah->ah_seq), len); if (vflag) { -- cgit v1.2.3