From a36b4a9ad6511c0699d0db3b2f9b5e5163c314b4 Mon Sep 17 00:00:00 2001 From: pi-rho Date: Wed, 20 Feb 2013 23:17:59 -0600 Subject: [PATCH] fix ip options skip -- ihl will always be >= 20 --- src/pcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcat.c b/src/pcat.c index 782b1a5..611587d 100644 --- a/src/pcat.c +++ b/src/pcat.c @@ -186,7 +186,7 @@ void process_ip4(struct stream *s, FILE *out) { DDUMP_d(length); // Ignore options - sskip(s, 20 - ihl); + sskip(s, ihl - 20); // Force stream length to IP payload length s->len = length - ihl;