]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netpfil tests: Add the set ToS test for ipfw and pf
authorkp <kp@FreeBSD.org>
Tue, 20 Aug 2019 14:31:22 +0000 (14:31 +0000)
committerkp <kp@FreeBSD.org>
Tue, 20 Aug 2019 14:31:22 +0000 (14:31 +0000)
commitd39fae86372fa160ce54a192c9de390f9b9891ff
tree3b9a7b9a2dfd0951649c58f17c3b7eb6474d797f
parent4c524d8f8dc1d18cf649b8154fb1a3a24fe6ea67
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
tests/sys/netpfil/common/Makefile
tests/sys/netpfil/common/tos.sh [new file with mode: 0644]