Lines Matching refs:ip_sum

635 			pf_change_ap(m, pd->src, &th->th_sport, pd->ip_sum,  in pf_packet_rework_nat()
639 pf_change_ap(m, pd->dst, &th->th_dport, pd->ip_sum, in pf_packet_rework_nat()
649 pf_change_ap(m, pd->src, &uh->uh_sport, pd->ip_sum, in pf_packet_rework_nat()
653 pf_change_ap(m, pd->dst, &uh->uh_dport, pd->ip_sum, in pf_packet_rework_nat()
664 pf_change_ap(m, pd->src, &sh->src_port, pd->ip_sum, in pf_packet_rework_nat()
669 pf_change_ap(m, pd->dst, &sh->dest_port, pd->ip_sum, in pf_packet_rework_nat()
695 pd->ip_sum, nk->addr[pd->sidx].v4.s_addr, in pf_packet_rework_nat()
709 pd->ip_sum, nk->addr[pd->didx].v4.s_addr, in pf_packet_rework_nat()
3639 ip4->ip_sum = in_cksum(n, ip4->ip_hl << 2); in pf_change_icmp_af()
4057 h->ip_sum = 0; in pf_build_tcp()
4276 if (pd->ip_sum) in pf_undo_nat()
4277 *pd->ip_sum = bip_sum; in pf_undo_nat()
5580 if (pd->ip_sum) in pf_test_rule()
5581 bip_sum = *pd->ip_sum; in pf_test_rule()
5590 pd->ip_sum, &th->th_sum, &nk->addr[pd->sidx], in pf_test_rule()
5600 pd->ip_sum, &th->th_sum, &nk->addr[pd->didx], in pf_test_rule()
5615 pd->ip_sum, &pd->hdr.udp.uh_sum, in pf_test_rule()
5627 pd->ip_sum, &pd->hdr.udp.uh_sum, in pf_test_rule()
5642 &pd->hdr.sctp.src_port, pd->ip_sum, &checksum, in pf_test_rule()
5652 &pd->hdr.sctp.dest_port, pd->ip_sum, &checksum, in pf_test_rule()
5664 pf_change_a(&pd->src->v4.s_addr, pd->ip_sum, in pf_test_rule()
5670 pf_change_a(&pd->dst->v4.s_addr, pd->ip_sum, in pf_test_rule()
5709 pd->ip_sum, in pf_test_rule()
5717 pd->ip_sum, in pf_test_rule()
6323 pf_change_ap(pd->m, pd->src, pd->sport, pd->ip_sum, &pd->hdr.tcp.th_sum, in pf_translate()
6328 pf_change_ap(pd->m, pd->dst, pd->dport, pd->ip_sum, &pd->hdr.tcp.th_sum, in pf_translate()
6336 pf_change_ap(pd->m, pd->src, pd->sport, pd->ip_sum, &pd->hdr.udp.uh_sum, in pf_translate()
6341 pf_change_ap(pd->m, pd->dst, pd->dport, pd->ip_sum, &pd->hdr.udp.uh_sum, in pf_translate()
6350 pf_change_ap(pd->m, pd->src, pd->sport, pd->ip_sum, &checksum, in pf_translate()
6355 pf_change_ap(pd->m, pd->dst, pd->dport, pd->ip_sum, &checksum, in pf_translate()
7098 pf_change_ap(pd->m, pd->src, pd->sport, pd->ip_sum, in pf_test_state()
7105 pf_change_ap(pd->m, pd->dst, pd->dport, pd->ip_sum, in pf_test_state()
7729 pd->ip_sum, in pf_test_state_icmp()
7736 pd->ip_sum, in pf_test_state_icmp()
7845 pd2.ip_sum = &h2.ip_sum; in pf_test_state_icmp()
7867 pd2.ip_sum = NULL; in pf_test_state_icmp()
8018 pd->ip_sum, &dummy_cksum, &nk->addr[pd2.sidx], in pf_test_state_icmp()
8021 pd->ip_sum, &dummy_cksum, &nk->addr[pd2.didx], in pf_test_state_icmp()
8053 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8054 pd->ip_sum, 0, pd2.af); in pf_test_state_icmp()
8062 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8063 pd->ip_sum, 0, pd2.af); in pf_test_state_icmp()
8151 pd->ip_sum, &uh.uh_sum, &nk->addr[pd2.sidx], in pf_test_state_icmp()
8154 pd->ip_sum, &uh.uh_sum, &nk->addr[pd2.didx], in pf_test_state_icmp()
8187 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8188 pd->ip_sum, 1, pd2.af); in pf_test_state_icmp()
8196 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8197 pd->ip_sum, 1, pd2.af); in pf_test_state_icmp()
8332 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8333 pd->ip_sum, 0, pd2.af); in pf_test_state_icmp()
8341 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8342 pd->ip_sum, 0, pd2.af); in pf_test_state_icmp()
8472 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8473 pd->ip_sum, 0, AF_INET); in pf_test_state_icmp()
8479 pd2.ip_sum, icmpsum, pd->ip_sum, 0, in pf_test_state_icmp()
8591 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8592 pd->ip_sum, 0, AF_INET6); in pf_test_state_icmp()
8598 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8599 pd->ip_sum, 0, AF_INET6); in pf_test_state_icmp()
8630 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8631 pd->ip_sum, 0, pd2.af); in pf_test_state_icmp()
8637 pd2.ip_sum, icmpsum, in pf_test_state_icmp()
8638 pd->ip_sum, 0, pd2.af); in pf_test_state_icmp()
8970 ip->ip_sum = 0; in pf_route()
8972 ip->ip_sum = in_cksum(m0, ip->ip_hl << 2); in pf_route()
9866 pd->ip_sum = &h->ip_sum; in pf_setup_pdesc()
9909 pd->ip_sum = NULL; in pf_setup_pdesc()