Home | History | Annotate | Download | only in net

Lines Matching refs:state_key

709 			    (*state)->state_key->af);
713 p.pfra_af = (*state)->state_key->af;
714 switch ((*state)->state_key->af) {
739 sk = st->state_key;
746 (*state)->state_key->af &&
747 (((*state)->state_key->direction ==
751 ((*state)->state_key->direction == PF_IN &&
843 struct pf_state_key *sk = s->state_key;
868 KASSERT(s->state_key != NULL);
872 s->state_key)) != NULL) {
887 &pf_statetbl_ext_gwy, s->state_key)) != NULL) {
1073 pf_send_tcp(cur->rule.ptr, cur->state_key->af,
1074 &cur->state_key->ext.addr, &cur->state_key->lan.addr,
1075 cur->state_key->ext.port, cur->state_key->lan.port,
1262 struct pf_state_key *sk = s->state_key;
3003 switch (s->state_key->af) {
3024 s->state_key = sk;
3037 struct pf_state_key *sk = s->state_key;
3042 s->state_key = NULL;
3683 pf_set_rt_ifp(s, saddr); /* needs s->state_key set */
3845 if (direction == (*state)->state_key->direction) {
3854 if (direction != (*state)->state_key->direction) {
3886 psrc = &(*state)->state_key->gwy;
3887 pdst = &(*state)->state_key->ext;
3889 psrc = &(*state)->state_key->ext;
3890 pdst = &(*state)->state_key->lan;
3892 if (direction == (*state)->state_key->direction) {
4240 direction == (*state)->state_key->direction ?
4258 if (STATE_TRANSLATE((*state)->state_key)) {
4261 &th->th_sum, &(*state)->state_key->gwy.addr,
4262 (*state)->state_key->gwy.port, 0, pd->af);
4265 &th->th_sum, &(*state)->state_key->lan.addr,
4266 (*state)->state_key->lan.port, 0, pd->af);
4300 if (direction == (*state)->state_key->direction) {
4322 if (STATE_TRANSLATE((*state)->state_key)) {
4325 &uh->uh_sum, &(*state)->state_key->gwy.addr,
4326 (*state)->state_key->gwy.port, 1, pd->af);
4329 &uh->uh_sum, &(*state)->state_key->lan.addr,
4330 (*state)->state_key
4407 if (STATE_TRANSLATE((*state)->state_key)) {
4414 (*state)->state_key->gwy.addr.v4.s_addr, 0);
4418 (*state)->state_key->gwy.port, 0);
4420 (*state)->state_key->gwy.port;
4429 &(*state)->state_key->gwy.addr, 0);
4442 (*state)->state_key->lan.addr.v4.s_addr, 0);
4446 (*state)->state_key->lan.port, 0);
4448 (*state)->state_key->lan.port;
4457 &(*state)->state_key->lan.addr, 0);
4613 if (direction == (*state)->state_key->direction) {
4650 if (STATE_TRANSLATE((*state)->state_key)) {
4653 daddr, &(*state)->state_key->lan.addr,
4654 (*state)->state_key->lan.port, NULL,
4659 saddr, &(*state)->state_key->gwy.addr,
4660 (*state)->state_key->gwy.port, NULL,
4720 if (STATE_TRANSLATE((*state)->state_key)) {
4724 &(*state)->state_key->lan.addr,
4725 (*state)->state_key->lan.port,
4732 &(*state)->state_key->gwy.addr,
4733 (*state)->state_key->gwy.port, &uh.uh_sum,
4789 if (STATE_TRANSLATE((*state)->state_key)) {
4793 &(*state)->state_key->lan.addr,
4794 (*state)->state_key->lan.port, NULL,
4800 &(*state)->state_key->gwy.addr,
4801 (*state)->state_key->gwy.port, NULL,
4842 if (STATE_TRANSLATE((*state)->state_key)) {
4846 &(*state)->state_key->lan.addr,
4847 (*state)->state_key->lan.port, NULL,
4852 saddr, &(*state)->state_key->gwy.addr,
4853 (*state)->state_key->gwy.port, NULL,
4885 if (STATE_TRANSLATE((*state)->state_key)) {
4889 &(*state)->state_key->lan.addr,
4896 &(*state)->state_key->gwy.addr,
4951 if (direction == (*state)->state_key->direction) {
4973 if (STATE_TRANSLATE((*state)->state_key)) {
4980 (*state)->state_key->gwy.addr.v4.s_addr,
4987 &(*state)->state_key->gwy.addr, pd->af);
4997 (*state)->state_key->lan.addr.v4.s_addr,
5004 &(*state)->state_key->lan.addr, pd->af);
6000 sk = s->state_key;
6422 sk = s->state_key;