Catch up to r343631: Avoid "pfil: duplicate hook" due to

ipf_check_wrapper and ipf_check_wrapper6 being registered
under the same pa_rulename.

MFC after:	3 days
This commit is contained in:
Cy Schubert 2019-04-11 04:22:06 +00:00
parent a1742a5883
commit 8f83ca2690
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346114

View File

@ -1344,13 +1344,14 @@ int ipf_pfil_hook(void) {
pha.pa_version = PFIL_VERSION;
pha.pa_flags = PFIL_IN | PFIL_OUT;
pha.pa_modname = "ipfilter";
pha.pa_rulname = "default";
pha.pa_rulname = "default-ip4";
pha.pa_func = ipf_check_wrapper;
pha.pa_ruleset = NULL;
pha.pa_type = PFIL_TYPE_IP4;
V_ipf_inet_hook = pfil_add_hook(&pha);
#ifdef USE_INET6
pha.pa_rulname = "default-ip6";
pha.pa_func = ipf_check_wrapper6;
pha.pa_type = PFIL_TYPE_IP6;
V_ipf_inet6_hook = pfil_add_hook(&pha);