Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/pf/if_pflog.c
| Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | default: | ||||
| return (ENOTTY); | return (ENOTTY); | ||||
| } | } | ||||
| return (0); | return (0); | ||||
| } | } | ||||
| static int | static int | ||||
| pflog_packet(struct pfi_kif *kif, struct mbuf *m, sa_family_t af, u_int8_t dir, | pflog_packet(struct pfi_kif *kif, struct mbuf *m, sa_family_t af, u_int8_t dir, | ||||
| u_int8_t reason, struct pf_rule *rm, struct pf_rule *am, | u_int8_t reason, struct pf_krule *rm, struct pf_krule *am, | ||||
| struct pf_ruleset *ruleset, struct pf_pdesc *pd, int lookupsafe) | struct pf_kruleset *ruleset, struct pf_pdesc *pd, int lookupsafe) | ||||
| { | { | ||||
| struct ifnet *ifn; | struct ifnet *ifn; | ||||
| struct pfloghdr hdr; | struct pfloghdr hdr; | ||||
| if (kif == NULL || m == NULL || rm == NULL || pd == NULL) | if (kif == NULL || m == NULL || rm == NULL || pd == NULL) | ||||
| return ( 1); | return ( 1); | ||||
| if ((ifn = V_pflogifs[rm->logif]) == NULL || !ifn->if_bpf) | if ((ifn = V_pflogifs[rm->logif]) == NULL || !ifn->if_bpf) | ||||
| ▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines | |||||