MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pfi_attach_group_event

Function pfi_attach_group_event

freebsd/netpfil/pf/pf_if.c:1006–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006static void
1007pfi_attach_group_event(void *arg __unused, struct ifg_group *ifg)
1008{
1009 struct epoch_tracker et;
1010 struct pfi_kkif *kif;
1011
1012 if (V_pf_vnet_active == 0) {
1013 /* Avoid teardown race in the least expensive way. */
1014 return;
1015 }
1016 kif = pf_kkif_create(M_WAITOK);
1017 NET_EPOCH_ENTER(et);
1018 PF_RULES_WLOCK();
1019 pfi_attach_ifgroup(ifg, kif);
1020 PF_RULES_WUNLOCK();
1021 NET_EPOCH_EXIT(et);
1022}
1023
1024static void
1025pfi_change_group_event(void *arg __unused, char *gname)

Callers

nothing calls this directly

Calls 2

pf_kkif_createFunction · 0.85
pfi_attach_ifgroupFunction · 0.85

Tested by

no test coverage detected