summaryrefslogtreecommitdiff
path: root/print-esp.c
diff options
context:
space:
mode:
authorhannes <hannes>2004-07-16 14:05:59 +0000
committerhannes <hannes>2004-07-16 14:05:59 +0000
commit89e2e0c7bedb2d3ea19b90dea2c1d31198307961 (patch)
tree3ee301faff7efe12bbc2b218d86955b7a32f117d /print-esp.c
parentce83684fe7a8e988e925c358531e100835730039 (diff)
downloadtcpdump-89e2e0c7bedb2d3ea19b90dea2c1d31198307961.tar.gz
print the packet length for ESP packets
Diffstat (limited to 'print-esp.c')
-rw-r--r--print-esp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/print-esp.c b/print-esp.c
index 25303e30..08bb8915 100644
--- a/print-esp.c
+++ b/print-esp.c
@@ -23,7 +23,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.51 2004-04-10 08:41:22 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.52 2004-07-16 14:05:59 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -330,7 +330,7 @@ static void esp_init(netdissect_options *ndo _U_)
int
esp_print(netdissect_options *ndo,
- const u_char *bp, const u_char *bp2
+ const u_char *bp, const int length, const u_char *bp2
#ifndef HAVE_LIBCRYPTO
_U_
#endif
@@ -392,6 +392,7 @@ esp_print(netdissect_options *ndo,
}
(*ndo->ndo_printf)(ndo, "ESP(spi=0x%08x", EXTRACT_32BITS(&esp->esp_spi));
(*ndo->ndo_printf)(ndo, ",seq=0x%x)", EXTRACT_32BITS(&esp->esp_seq));
+ (*ndo->ndo_printf)(ndo, ", length %u", length);
#ifndef HAVE_LIBCRYPTO
goto fail;