Page MenuHomeFreeBSD

pf tests: test the new received-on feature
ClosedPublic

Authored by kp on Sat, Sep 7, 9:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 19, 10:16 PM
Unknown Object (File)
Thu, Sep 19, 1:44 PM
Unknown Object (File)
Tue, Sep 17, 4:48 AM
Unknown Object (File)
Mon, Sep 16, 6:22 PM
Unknown Object (File)
Mon, Sep 16, 4:27 PM
Unknown Object (File)
Mon, Sep 16, 10:50 AM
Unknown Object (File)
Thu, Sep 12, 1:55 AM
Unknown Object (File)
Thu, Sep 12, 1:23 AM

Details

Summary

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zlei added a subscriber: zlei.

The test code looks good to me.

sbin/pfctl/tests/files/pf1022.ok
2

What purpose do those two files pf1022.in and pf1022.ok serve ?

This revision is now accepted and ready to land.Sat, Sep 14, 7:41 AM

The document says received-on can work on interface group. Shall we add additional tests for that case ?

The document says received-on can work on interface group. Shall we add additional tests for that case ?

That is an excellent idea. I'll add a test case.
It should just work, because we use pf_match_rcvif() to do the matching, but tests are good anyway.

sbin/pfctl/tests/files/pf1022.ok
2

They're part of the pfctl parser tests. We feed the .in file to it, and check that it produces the expected output. Basically making sure it can parse things the way we expect them to be parsed.

Also test received-on <group>

This revision now requires review to proceed.Mon, Sep 16, 10:07 AM
This revision was not accepted when it landed; it landed in state Needs Review.Mon, Sep 16, 1:06 PM
This revision was automatically updated to reflect the committed changes.