Lines Matching defs:reason
2613 u_short *reason)
2662 REASON_SET(reason, PFRES_PROTCKSUM);
3347 u_short reason;
3635 REASON_SET(&reason, PFRES_MATCH);
3640 PFLOG_PACKET(kif, m, af, direction, reason, r->log ? r : nr, a,
3649 bip_sum, hdrlen, &reason);
3656 REASON_SET(&reason, PFRES_MEMORY);
3672 bproto_sum, bip_sum, hdrlen, &reason);
3718 u_short reason;
3724 REASON_SET(&reason, PFRES_MAXSTATES);
3731 REASON_SET(&reason, PFRES_SRCLIMIT);
3737 REASON_SET(&reason, PFRES_SRCLIMIT);
3742 REASON_SET(&reason, PFRES_MEMORY);
3751 REASON_SET(&reason, PFRES_MEMORY);
3822 REASON_SET(&reason, PFRES_MAPFAILED);
3844 REASON_SET(&reason, PFRES_MEMORY);
3851 pf_normalize_tcp_stateful(m, off, pd, &reason, th, s,
3886 REASON_SET(&reason, PFRES_STATEINS);
3926 REASON_SET(&reason, PFRES_SYNPROXY);
3977 u_short reason;
4047 REASON_SET(&reason, PFRES_MATCH);
4050 PFLOG_PACKET(kif, m, af, direction, reason, r, a, ruleset, pd,
4057 REASON_SET(&reason, PFRES_MEMORY);
4067 struct pf_pdesc *pd, u_short *reason, int *copyback)
4094 REASON_SET(reason, PFRES_MEMORY);
4223 if (pf_normalize_tcp_stateful(m, off, pd, reason, th,
4251 REASON_SET(reason, PFRES_SRCLIMIT);
4322 if (pf_normalize_tcp_stateful(m, off, pd, reason, th,
4384 REASON_SET(reason, PFRES_BADSTATE);
4393 struct pf_state **state, struct pf_pdesc *pd, u_short *reason)
4409 REASON_SET(reason, PFRES_SRCLIMIT);
4425 REASON_SET(reason, PFRES_SRCLIMIT);
4465 u_short *reason)
4502 REASON_SET(reason, PFRES_SYNPROXY);
4507 REASON_SET(reason, PFRES_SYNPROXY);
4514 REASON_SET(reason, PFRES_SYNPROXY);
4519 REASON_SET(reason, PFRES_SYNPROXY);
4523 REASON_SET(reason, PFRES_SRCLIMIT);
4533 REASON_SET(reason, PFRES_SYNPROXY);
4544 REASON_SET(reason, PFRES_SYNPROXY);
4549 REASON_SET(reason, PFRES_SYNPROXY);
4575 REASON_SET(reason, PFRES_SYNPROXY);
4597 if (pf_tcp_track_sloppy(src, dst, state, pd, reason) == PF_DROP)
4600 if (pf_tcp_track_full(src, dst, state, kif, m, off, pd, reason,
4699 struct mbuf *m, int off, void *h, struct pf_pdesc *pd, u_short *reason)
4845 NULL, reason, pd2.af)) {
4856 REASON_SET(reason, PFRES_FRAG);
4874 NULL, reason, pd2.af)) {
4892 REASON_SET(reason, PFRES_FRAG);
4902 sizeof(opt6), NULL, reason,
4938 REASON_SET(reason, PFRES_BADSTATE);
4955 if (!pf_pull_hdr(m, off2, &th, 8, NULL, reason,
5006 REASON_SET(reason, PFRES_BADSTATE);
5077 NULL, reason, pd2.af)) {
5145 NULL, reason, pd2.af)) {
5197 sizeof(struct icmp6_hdr), NULL, reason, pd2.af)) {
5946 u_short action, reason = 0, log = 0;
5998 } else if (pf_normalize_ip(m0, dir, kif, &reason, &pd) != PF_PASS) {
6009 REASON_SET(&reason, PFRES_SHORT);
6040 &action, &reason, AF_INET)) {
6051 &reason);
6069 &action, &reason, AF_INET)) {
6077 REASON_SET(&reason, PFRES_SHORT);
6098 &action, &reason, AF_INET)) {
6103 &reason);
6144 REASON_SET(&reason, PFRES_IPOPTIONS);
6152 REASON_SET(&reason, PFRES_MEMORY);
6162 REASON_SET(&reason, PFRES_MEMORY);
6174 REASON_SET(&reason, PFRES_MEMORY);
6217 REASON_SET(&reason, PFRES_MEMORY);
6234 REASON_SET(&reason, PFRES_MEMORY);
6249 PFLOG_PACKET(kif, m, AF_INET, dir, reason, lr, a, ruleset, &pd,
6331 SDT_PROBE4(pf, ip, test, done, action, reason, r, s);
6342 u_short action, reason = 0, log = 0;
6379 if (pf_normalize_ip6(m0, dir, kif, &reason, &pd) != PF_PASS) {
6392 REASON_SET(&reason, PFRES_NORM); /*XXX*/
6416 REASON_SET(&reason, PFRES_FRAG);
6425 REASON_SET(&reason, PFRES_IPOPTIONS);
6430 &reason, pd.af)) {
6434 REASON_SET(&reason, PFRES_SHORT);
6442 REASON_SET(&reason, PFRES_IPOPTIONS);
6455 NULL, &reason, pd.af)) {
6486 &action, &reason, AF_INET6)) {
6495 &reason);
6513 &action, &reason, AF_INET6)) {
6521 REASON_SET(&reason, PFRES_SHORT);
6549 &action, &reason, AF_INET6)) {
6554 m, off, h, &pd, &reason);
6592 REASON_SET(&reason, PFRES_IPOPTIONS);
6600 REASON_SET(&reason, PFRES_MEMORY);
6610 REASON_SET(&reason, PFRES_MEMORY);
6622 REASON_SET(&reason, PFRES_MEMORY);
6655 PFLOG_PACKET(kif, m, AF_INET6, dir, reason, lr, a, ruleset,
6741 SDT_PROBE4(pf, ip, test6, done, action, reason, r, s);