Page MenuHomeFreeBSD

pf: remove switch (af) default cases
Needs ReviewPublic

Authored by kp on Fri, Oct 4, 12:45 PM.

Details

Reviewers
None
Group Reviewers
network
pfsense
Summary

pf_setup_pdesc() panics if address family is neither AF_INET nor
AF_INET6. So remove useless af switch defaults here and there.
Always use "switch(af)" instead of "if (af) else" for af dependent
code. Always use AF_ defines instead of PF_ when checking af values.
ok claudio mpf henning

Obtained from: OpenBSD, bluhm <bluhm@openbsd.org>, fb75e2fc14
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59753
Build 56639: arc lint + arc unit