fix ip options skip -- ihl will always be >= 20

This commit is contained in:
pi-rho 2013-02-20 23:17:59 -06:00
parent 018997ec4e
commit a36b4a9ad6
1 changed files with 1 additions and 1 deletions

View File

@ -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;