]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netpfil tests: Add the set ToS test for ipfw and pf
authorKristof Provost <kp@FreeBSD.org>
Tue, 20 Aug 2019 14:31:22 +0000 (14:31 +0000)
committerKristof Provost <kp@FreeBSD.org>
Tue, 14 Sep 2021 08:28:00 +0000 (10:28 +0200)
commitcacf2d4beb4e50fe636133ae1e2709537a560475
tree33a7b0cad42ce619841e21201d471f014cda5bd7
parentb10cd461a58bb3b8b80ae1405d9c88d2af74d547
netpfil tests: Add the set ToS test for ipfw and pf

This test tests the following:

 - The firewall is able to set the tos bits
 - The firewall is able to set the DSCP bits when EN bits is already set and
   the EN bits remains unchanged.
 - The firewall is able to drop the packets based on ToS value

Submitted by: Ahsan Barkati
Reviewed by: kp
Sponsored by: Google, Inc. (GSoC 2019)
Differential Revision: https://reviews.freebsd.org/D21305

(cherry picked from commit df3d236d96456f1c8400c7898045eae3ea93232d)
tests/sys/netpfil/common/Makefile
tests/sys/netpfil/common/tos.sh [new file with mode: 0644]