HomeFreeBSD

ping tests: Test IHL/quoted data/inner packet paths

Description

ping tests: Test IHL/quoted data/inner packet paths

Commit 46d7b45a267b3d78c5054b210ff7b6c55bfca42b introduced these code
paths. Test and document them.

  • Add inner packet too short test
  • Add inner IHL too short test
  • Add quoted data too short test
  • Add IHL too short test
  • Add max inner packet IHL without payload test

Reviewed by: markj
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/863
Differential Revision: https://reviews.freebsd.org/D38528

Details

Provenance
jlduranAuthored on Feb 11 2023, 2:17 PM
markjCommitted on Oct 11 2023, 5:48 PM
Reviewer
markj
Differential Revision
D38528: ping: Test IHL/quoted data/inner packet paths
Parents
rG4d348e83b738: ping: Avoid reporting NaNs
Branches
Unknown
Tags
Unknown