pf tests: Basic IPv6 forwarding tests
authorkp <kp@FreeBSD.org>
Mon, 16 Oct 2017 15:03:45 +0000 (15:03 +0000)
committerkp <kp@FreeBSD.org>
Mon, 16 Oct 2017 15:03:45 +0000 (15:03 +0000)
commiteb4416b626a9f3cd9c5f2641cc31960110311401
tree182e7e1f87b81629bd000a62e988a677aae4ff6d
parent0612da0910794b923ddef25b0c8724d8db227b85
pf tests: Basic IPv6 forwarding tests

Pass/block packets in the forwarding path with pf.

Introduce the pft_set_rules() helper function, because we need to
remember to flush states between individual tests. If not we can get
packets passing despite rules blocking them because they match states
created in a previous test.

Extend pft_ping.py to be able to send IPv6 echo requests.
tests/sys/netpfil/pf/forward.sh
tests/sys/netpfil/pf/pft_ping.py
tests/sys/netpfil/pf/utils.subr