Lines Matching refs:pd2

6611 		struct pf_pdesc	pd2;
6622 memset(&pd2, 0, sizeof (pd2));
6624 pd2.af = pd->af;
6632 NULL, reason, pd2.af)) {
6650 pd2.proto = h2.ip_p;
6651 pd2.src = (struct pf_addr *)&h2.ip_src;
6652 pd2.dst = (struct pf_addr *)&h2.ip_dst;
6653 pd2.ip_sum = &h2.ip_sum;
6661 NULL, reason, pd2.af)) {
6667 pd2.proto = h2_6.ip6_nxt;
6668 pd2.src = (struct pf_addr *)&h2_6.ip6_src;
6669 pd2.dst = (struct pf_addr *)&h2_6.ip6_dst;
6670 pd2.ip_sum = NULL;
6673 switch (pd2.proto) {
6690 pd2.af)) {
6695 if (pd2.proto == IPPROTO_AH)
6699 pd2.proto = opt6.ip6e_nxt;
6712 switch (pd2.proto) {
6726 pd2.af)) {
6733 key.af = pd2.af;
6736 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
6737 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
6741 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
6742 PF_ACPY(&key.ext.addr, pd2.src, key.af);
6789 pf_change_icmp(pd2.src, &th.th_sport,
6792 pd2.ip_sum, icmpsum,
6793 pd->ip_sum, 0, pd2.af);
6795 pf_change_icmp(pd2.dst, &th.th_dport,
6798 pd2.ip_sum, icmpsum,
6799 pd->ip_sum, 0, pd2.af);
6808 switch (pd2.af) {
6837 NULL, reason, pd2.af)) {
6844 key.af = pd2.af;
6847 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
6848 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
6853 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
6854 PF_ACPY(&key.ext.addr, pd2.src, key.af);
6911 pf_change_icmp(pd2.src, &uh.uh_sport,
6914 pd2.ip_sum, icmpsum,
6915 pd->ip_sum, 1, pd2.af);
6917 pf_change_icmp(pd2.dst, &uh.uh_dport,
6920 pd2.ip_sum, icmpsum,
6921 pd->ip_sum, 1, pd2.af);
6927 switch (pd2.af) {
6956 NULL, reason, pd2.af)) {
6963 key.af = pd2.af;
6966 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
6967 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
6971 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
6972 PF_ACPY(&key.ext.addr, pd2.src, key.af);
6981 pf_change_icmp(pd2.src, &iih.icmp_id,
6984 pd2.ip_sum, icmpsum,
6987 pf_change_icmp(pd2.dst, &iih.icmp_id,
6990 pd2.ip_sum, icmpsum,
7010 sizeof (struct icmp6_hdr), NULL, reason, pd2.af)) {
7017 key.af = pd2.af;
7020 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
7021 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
7025 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
7026 PF_ACPY(&key.ext.addr, pd2.src, key.af);
7035 pf_change_icmp(pd2.src, &iih.icmp6_id,
7038 pd2.ip_sum, icmpsum,
7041 pf_change_icmp(pd2.dst, &iih.icmp6_id,
7044 pd2.ip_sum, icmpsum,
7063 key.af = pd2.af;
7064 key.proto = pd2.proto;
7066 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
7067 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
7071 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
7072 PF_ACPY(&key.ext.addr, pd2.src, key.af);
7081 pf_change_icmp(pd2.src, NULL,
7084 pd2.ip_sum, icmpsum,
7085 pd->ip_sum, 0, pd2.af);
7087 pf_change_icmp(pd2.dst, NULL,
7090 pd2.ip_sum, icmpsum,
7091 pd->ip_sum, 0, pd2.af);
7093 switch (pd2.af) {