Commit Graph

3 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
9939a0ff90 tests: Use -tttt option for most tests
This change adds:
year-month-day to the hours:minutes:secondes.{microseconds|nanoseconds}.

It allows to catch more issues with timestamps processing.

For some test using their own display time options, use 'SPECIAL_t' in
options.
2024-03-11 22:12:38 -07:00
Francois-Xavier Le Bail
19fbfa5346 IP: Report another invalid case as invalid, not truncated
When the IP total length is > (original) length, output example:
  [total length 85 > length 84] (invalid)

We treat this as a warning and so don't stop decoding (as before).

No need to use ND_TCHECK_SIZE(ip) before GET_BE_U_2(ip->ip_len).
ND_TCHECK_SIZE(ip) could be moved further into the code in a future
update.

Add a test file.

Update some test outputs accordingly.
2023-09-07 17:43:07 +02:00
Francois-Xavier Le Bail
e1bd3ba135 timed: Add three test capture files
These capture files triggered a buffer over-read fixed by
6f2cd8cee6.

Two pcap files were updated to pass the sanity checks.

Update the outputs of the tests accordingly.
2019-11-05 14:35:02 +01:00