]> The Tcpdump Group git mirrors - tcpdump/commit
Juniper: Use the ND_ICHECKMSG_U() macro for a length check
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 18 Oct 2024 10:07:36 +0000 (12:07 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 18 Oct 2024 13:34:16 +0000 (15:34 +0200)
commit07a730a6f5d7d92d34cd7b137fa7fc21505f8441
tree8e604b223db62ebd6c8fe0decd2f8839611e66c1
parent6fa624334bfa077934deb08b65ffbd22105429e1
Juniper: Use the ND_ICHECKMSG_U() macro for a length check

It displays the reason for the "invalid" case.

Before:
    1  2015-05-19 13:34:16.720640  (invalid)
After:
    1  2015-05-19 13:34:16.720640  [cookie length 10 > 8] (invalid)

This is a follow-up to 8c7221d39b44502999c78200d544665f13b4e331.

Add the poc test file from GitHub issue #783 (first packet).

Moreover:
Remove some extra blank lines.
print-juniper.c
tests/TESTLIST
tests/juniper_monitor_invalid_cookie_length.out [new file with mode: 0644]
tests/juniper_monitor_invalid_cookie_length.pcap [new file with mode: 0644]