Lines Matching refs:gwy

410 	(sk)->lan.addr.addr32[0] != (sk)->gwy.addr.addr32[0] ||		\
412 ((sk)->lan.addr.addr32[1] != (sk)->gwy.addr.addr32[1] || \
413 (sk)->lan.addr.addr32[2] != (sk)->gwy.addr.addr32[2] || \
414 (sk)->lan.addr.addr32[3] != (sk)->gwy.addr.addr32[3]))
418 (sk)->lan.xport.port != (sk)->gwy.xport.port)
422 (sk)->lan.xport.call_id != (sk)->gwy.xport.call_id)
952 if ((diff = a->gwy.xport.port - b->gwy.xport.port) != 0)
959 if ((diff = a->gwy.xport.port - b->gwy.xport.port) != 0)
967 if ((diff = a->gwy.xport.port - b->gwy.xport.port) != 0)
977 if (!!(diff = a->gwy.xport.call_id -
978 b->gwy.xport.call_id))
984 if (!!(diff = a->gwy.xport.spi - b->gwy.xport.spi))
995 if (a->gwy.addr.addr32[0] > b->gwy.addr.addr32[0])
997 if (a->gwy.addr.addr32[0] < b->gwy.addr.addr32[0])
1009 if (a->gwy.addr.addr32[3] > b->gwy.addr.addr32[3])
1011 if (a->gwy.addr.addr32[3] < b->gwy.addr.addr32[3])
1013 if (a->gwy.addr.addr32[2] > b->gwy.addr.addr32[2])
1015 if (a->gwy.addr.addr32[2] < b->gwy.addr.addr32[2])
1017 if (a->gwy.addr.addr32[1] > b->gwy.addr.addr32[1])
1019 if (a->gwy.addr.addr32[1] < b->gwy.addr.addr32[1])
1021 if (a->gwy.addr.addr32[0] > b->gwy.addr.addr32[0])
1023 if (a->gwy.addr.addr32[0] < b->gwy.addr.addr32[0])
1394 printf(" gwy: ");
1395 pf_print_sk_host(&sk->gwy, sk->af, sk->proto,
1886 pf_print_sk_host(&sk->gwy, sk->af, sk->proto, sk->proto_variant);
3223 nxport->port = sk->gwy.xport.port;
3246 nxport->port = sk->gwy.xport.port;
3254 PF_ACPY(&key.gwy.addr, naddr, key.af);
3274 key.gwy.xport = *dxport;
3276 memset(&key.gwy.xport, 0,
3281 key.gwy.xport = *nxport;
3285 key.gwy.xport.port = htons(low);
3301 key.gwy.xport.port = htons(tmp);
3309 key.gwy.xport.port = htons(tmp);
3959 bcopy(&psk->gwy, &sk->gwy, sizeof (sk->gwy));
4644 PF_ACPY(&psk.gwy.addr, saddr, af);
4648 psk.gwy.xport = sxport;
4652 psk.gwy.xport.spi = 0;
4659 psk.gwy.xport.port = nxport.port;
4663 psk.gwy.xport = sxport;
4671 PF_ACPY(&psk.lan.addr, &psk.gwy.addr, af);
4672 psk.lan.xport = psk.gwy.xport;
4695 PF_ACPY(&psk.gwy.addr, &pd->baddr, af);
4696 psk.gwy.xport = bxport;
4698 PF_ACPY(&psk.gwy.addr, &psk.lan.addr, af);
4699 psk.gwy.xport = psk.lan.xport;
4751 PF_ACPY(&sk0.gwy.addr, saddr, sk0.af);
4935 sk->ext.xport.port : sk->gwy.xport.port;
5520 memcpy(&gsk->gwy, &sk->gwy, sizeof (gsk->gwy));
5527 gsk->gwy.xport.call_id = 0;
5639 if (!gsk->gwy.xport.call_id && gsk->lan.xport.call_id) {
5640 gsk->gwy.xport.call_id = gsk->lan.xport.call_id;
5649 PF_ACPY(&key.gwy.addr, &gsk->gwy.addr, key.af);
5651 key.gwy.xport.call_id = gsk->gwy.xport.call_id;
5663 key.gwy.xport.call_id = call_id;
5669 key.gwy.xport.call_id = 0;
5674 gsk->gwy.xport.call_id = call_id;
5680 if (spoof_call_id && gsk->lan.xport.call_id != gsk->gwy.xport.call_id) {
5681 if (*spoof_call_id == gsk->gwy.xport.call_id) {
5684 gsk->gwy.xport.call_id, gsk->lan.xport.call_id, 0);
5686 *spoof_call_id = gsk->gwy.xport.call_id;
5688 gsk->lan.xport.call_id, gsk->gwy.xport.call_id, 0);
5706 gsk->gwy.xport.call_id = 0;
5809 PF_ACPY(&key.gwy.addr, pd->dst, key.af);
5811 key.gwy.xport.port = th->th_dport;
5862 psrc = &(*state)->state_key->gwy;
6289 &(*state)->state_key->gwy.addr,
6290 (*state)->state_key->gwy.xport.port, 0, pd->af);
6330 PF_ACPY(&key.gwy.addr, pd->dst, key.af);
6332 key.gwy.xport.port = uh->uh_dport;
6444 &(*state)->state_key->gwy.addr,
6445 (*state)->state_key->gwy.xport.port, 1, pd->af);
6511 PF_ACPY(&key.gwy.addr, pd->dst, key.af);
6513 key.gwy.xport.port = icmpid;
6534 (*state)->state_key->gwy.addr.v4.s_addr, 0);
6538 (*state)->state_key->gwy.xport.port, 0);
6540 (*state)->state_key->gwy.xport.port;
6553 &(*state)->state_key->gwy.addr, 0);
6737 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
6739 key.gwy.xport.port = th.th_sport;
6796 saddr, &(*state)->state_key->gwy.addr,
6797 (*state)->state_key->gwy.xport.port, NULL,
6848 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
6850 key.gwy.xport.port = uh.uh_sport;
6918 saddr, &(*state)->state_key->gwy.addr,
6919 (*state)->state_key->gwy.xport.port, &uh.uh_sum,
6967 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
6969 key.gwy.xport.port = iih.icmp_id;
6988 saddr, &(*state)->state_key->gwy.addr,
6989 (*state)->state_key->gwy.xport.port, NULL,
7021 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
7023 key.gwy.xport.port = iih.icmp6_id;
7042 saddr, &(*state)->state_key->gwy.addr,
7043 (*state)->state_key->gwy.xport.port, NULL,
7067 PF_ACPY(&key.gwy.addr, pd2.src, key.af);
7069 key.gwy.xport.port = 0;
7088 saddr, &(*state)->state_key->gwy.addr,
7140 PF_ACPY(&key.gwy.addr, pd->dst, key.af);
7141 key.gwy.xport.call_id = grev1->call_id;
7186 (*state)->state_key->gwy.addr.v4.s_addr, 0);
7191 PF_ACPY(pd->src, &(*state)->state_key->gwy.addr,
7241 PF_ACPY(&key.gwy.addr, pd->dst, key.af);
7242 key.gwy.xport.spi = esp->spi;
7261 key.gwy.xport.spi = 0;
7269 sk->lan.xport.spi = sk->gwy.xport.spi =
7351 (*state)->state_key->gwy.addr.v4.s_addr, 0);
7356 PF_ACPY(pd->src, &(*state)->state_key->gwy.addr,
7395 PF_ACPY(&key.gwy.addr, pd->dst, key.af);
7397 key.gwy.xport.port = 0;
7436 (*state)->state_key->gwy.addr.v4.s_addr,
7443 &(*state)->state_key->gwy.addr, pd->af);