Sponsored by: Rubicon Communications, LLC ("Netgate")
Details
Details
- Reviewers
zlei - Group Reviewers
network pfsense - Commits
- rG661d0031bbc6: pf tests: test the new received-on feature
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
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 ? |
Comment Actions
The document says received-on can work on interface group. Shall we add additional tests for that case ?
Comment Actions
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. |