Lines Matching defs:pd2
4475 struct pf_pdesc pd2;
4486 memset(&pd2, 0, sizeof pd2); /* XXX gcc */
4488 pd2.af = pd->af;
4496 NULL, reason, pd2.af)) {
4514 pd2.proto = h2.ip_p;
4515 pd2.src = (struct pf_addr *)&h2.ip_src;
4516 pd2.dst = (struct pf_addr *)&h2.ip_dst;
4517 pd2.ip_sum = &h2.ip_sum;
4525 NULL, reason, pd2.af)) {
4531 pd2.proto = h2_6.ip6_nxt;
4532 pd2.src = (struct pf_addr *)&h2_6.ip6_src;
4533 pd2.dst = (struct pf_addr *)&h2_6.ip6_dst;
4534 pd2.ip_sum = NULL;
4537 switch (pd2.proto) {
4554 pd2.af)) {
4559 if (pd2.proto == IPPROTO_AH)
4563 pd2.proto = opt6.ip6e_nxt;
4576 switch (pd2.proto) {
4590 pd2.af)) {
4597 key.af = pd2.af;
4600 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
4601 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
4605 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
4606 PF_ACPY(&key.ext.addr, pd2.src, key.af);
4652 pf_change_icmp(pd2.src, &th.th_sport,
4655 pd2.ip_sum, icmpsum,
4656 pd->ip_sum, 0, pd2.af);
4658 pf_change_icmp(pd2.dst, &th.th_dport,
4661 pd2.ip_sum, icmpsum,
4662 pd->ip_sum, 0, pd2.af);
4668 switch (pd2.af) {
4697 NULL, reason, pd2.af)) {
4704 key.af = pd2.af;
4707 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
4708 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
4712 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
4713 PF_ACPY(&key.ext.addr, pd2.src, key.af);
4722 pf_change_icmp(pd2.src, &uh.uh_sport,
4727 pd2.ip_sum, icmpsum,
4728 pd->ip_sum, 1, pd2.af);
4730 pf_change_icmp(pd2.dst, &uh.uh_dport,
4734 pd2.ip_sum, icmpsum,
4735 pd->ip_sum, 1, pd2.af);
4737 switch (pd2.af) {
4766 NULL, reason, pd2.af)) {
4773 key.af = pd2.af;
4776 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
4777 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
4781 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
4782 PF_ACPY(&key.ext.addr, pd2.src, key.af);
4791 pf_change_icmp(pd2.src, &iih.icmp_id,
4795 pd2.ip_sum, icmpsum,
4798 pf_change_icmp(pd2.dst, &iih.icmp_id,
4802 pd2.ip_sum, icmpsum,
4819 sizeof(struct icmp6_hdr), NULL, reason, pd2.af)) {
4826 key.af = pd2.af;
4829 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
4830 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
4834 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
4835 PF_ACPY(&key.ext.addr, pd2.src, key.af);
4844 pf_change_icmp(pd2.src, &iih.icmp6_id,
4848 pd2.ip_sum, icmpsum,
4851 pf_change_icmp(pd2.dst, &iih.icmp6_id,
4854 pd2.ip_sum, icmpsum,
4869 key.af = pd2.af;
4870 key.proto = pd2.proto;
4872 PF_ACPY(&key.ext.addr, pd2.dst, key.af);
4873 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
4877 PF_ACPY(&key.lan.addr, pd2.dst, key.af);
4878 PF_ACPY(&key.ext.addr, pd2.src, key.af);
4887 pf_change_icmp(pd2.src, NULL,
4891 pd2.ip_sum, icmpsum,
4892 pd->ip_sum, 0, pd2.af);
4894 pf_change_icmp(pd2.dst, NULL,
4898 pd2.ip_sum, icmpsum,
4899 pd->ip_sum, 0, pd2.af);
4901 switch (pd2.af) {