Lines Matching defs:pd

1527     struct pf_pdesc *pd)
1578 r->bytes[dir == PF_OUT] += pd->tot_len;
1654 pd->pf_mtag = pf_find_mtag(m);
1656 if (pd->pf_mtag == NULL) {
1658 if ((pd->pf_mtag = pf_get_mtag(m)) == NULL) {
1673 if (dir == PF_OUT && (pd->pf_mtag->pftag_flags & PF_TAG_FRAGCACHE)) {
1701 pd->pf_mtag = pf_find_mtag(m);
1703 if (pd->pf_mtag == NULL) {
1705 if ((pd->pf_mtag = pf_get_mtag(m)) == NULL) {
1713 pd->pf_mtag->pftag_flags |= PF_TAG_FRAGCACHE;
1745 pd->flags |= PFDESC_IP_REAS;
1758 pd->flags |= PFDESC_IP_REAS;
1765 NULL, NULL, pd);
1772 NULL, NULL, pd);
1784 PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
1792 u_short *reason, struct pf_pdesc *pd)
1855 r->bytes[dir == PF_OUT] += pd->tot_len;
1866 pd->proto = proto;
1976 pd->proto = frag.ip6f_nxt;
1988 pd->flags |= PFDESC_IP_REAS;
2023 else if (dir == PF_IN || !(pd->pf_mtag->pftag_flags & PF_TAG_FRAGCACHE)) {
2047 pd->pf_mtag->pftag_flags |= PF_TAG_FRAGCACHE;
2079 PFLOG_PACKET(kif, h, m, AF_INET6, dir, *reason, r, NULL, NULL, pd);
2086 int off, void *h, struct pf_pdesc *pd)
2090 struct tcphdr *th = pd->hdr.tcp;
2095 sa_family_t af = pd->af;
2111 else if (r->proto && r->proto != pd->proto)
2113 else if (PF_MISMATCHAW(&r->src.addr, pd->src, af,
2120 else if (PF_MISMATCHAW(&r->dst.addr, pd->dst, af,
2128 !pf_osfp_match(pf_osfp_fingerprint(pd, m, off, th),
2149 r->bytes[dir == PF_OUT] += pd->tot_len;
2153 pd->flags |= PFDESC_TCP_NORM;
2202 int rv = pf_normalize_tcpopt(r, dir, kif, pd, m, th, off,
2206 m = pd->mp;
2210 struct mbuf *mw = pf_lazy_makewritable(pd, m,
2216 r, 0, 0, pd);
2228 PFLOG_PACKET(kif, h, m, AF_INET, dir, reason, r, NULL, NULL, pd);
2233 pf_normalize_tcp_init(struct mbuf *m, int off, struct pf_pdesc *pd,
2248 switch (pd->af) {
2275 pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) {
2328 pf_normalize_tcp_stateful(struct mbuf *m, int off, struct pf_pdesc *pd,
2347 switch (pd->af) {
2375 pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) {
2445 m = pf_lazy_makewritable(pd, m, optoff + optlen);
2618 || pd->p_len > 0 || (th->th_flags & TH_SYN)) &&
2649 if (pd->p_len > 0 && (src->scrub->pfss_flags & PFSS_DATA_TS)) {
2675 if (pd->p_len > 0 && src->scrub && (src->scrub->pfss_flags &
2729 struct pf_pdesc *pd, struct mbuf *m, struct tcphdr *th, int off,
2733 sa_family_t af = pd->af;
2787 mw = pf_lazy_makewritable(pd, pd->mp,
2793 r, 0, 0, pd);