mirror of https://github.com/dirtbags/fluffy.git
fix ip options skip -- ihl will always be >= 20
This commit is contained in:
parent
018997ec4e
commit
a36b4a9ad6
|
@ -186,7 +186,7 @@ void process_ip4(struct stream *s, FILE *out) {
|
||||||
DDUMP_d(length);
|
DDUMP_d(length);
|
||||||
|
|
||||||
// Ignore options
|
// Ignore options
|
||||||
sskip(s, 20 - ihl);
|
sskip(s, ihl - 20);
|
||||||
|
|
||||||
// Force stream length to IP payload length
|
// Force stream length to IP payload length
|
||||||
s->len = length - ihl;
|
s->len = length - ihl;
|
||||||
|
|
Loading…
Reference in New Issue