Lines Matching refs:pfs_1301

5714 	sp->pfs_1301.key[PF_SK_WIRE].addr[0] = st->key[PF_SK_WIRE]->addr[0];  in pfsync_state_export()
5715 sp->pfs_1301.key[PF_SK_WIRE].addr[1] = st->key[PF_SK_WIRE]->addr[1]; in pfsync_state_export()
5716 sp->pfs_1301.key[PF_SK_WIRE].port[0] = st->key[PF_SK_WIRE]->port[0]; in pfsync_state_export()
5717 sp->pfs_1301.key[PF_SK_WIRE].port[1] = st->key[PF_SK_WIRE]->port[1]; in pfsync_state_export()
5718 sp->pfs_1301.key[PF_SK_STACK].addr[0] = st->key[PF_SK_STACK]->addr[0]; in pfsync_state_export()
5719 sp->pfs_1301.key[PF_SK_STACK].addr[1] = st->key[PF_SK_STACK]->addr[1]; in pfsync_state_export()
5720 sp->pfs_1301.key[PF_SK_STACK].port[0] = st->key[PF_SK_STACK]->port[0]; in pfsync_state_export()
5721 sp->pfs_1301.key[PF_SK_STACK].port[1] = st->key[PF_SK_STACK]->port[1]; in pfsync_state_export()
5722 sp->pfs_1301.proto = st->key[PF_SK_WIRE]->proto; in pfsync_state_export()
5723 sp->pfs_1301.af = st->key[PF_SK_WIRE]->af; in pfsync_state_export()
5726 strlcpy(sp->pfs_1301.ifname, st->kif->pfik_name, sizeof(sp->pfs_1301.ifname)); in pfsync_state_export()
5727 bcopy(&st->act.rt_addr, &sp->pfs_1301.rt_addr, sizeof(sp->pfs_1301.rt_addr)); in pfsync_state_export()
5728 sp->pfs_1301.creation = htonl(time_uptime - (st->creation / 1000)); in pfsync_state_export()
5729 sp->pfs_1301.expire = pf_state_expires(st); in pfsync_state_export()
5730 if (sp->pfs_1301.expire <= time_uptime) in pfsync_state_export()
5731 sp->pfs_1301.expire = htonl(0); in pfsync_state_export()
5733 sp->pfs_1301.expire = htonl(sp->pfs_1301.expire - time_uptime); in pfsync_state_export()
5735 sp->pfs_1301.direction = st->direction; in pfsync_state_export()
5736 sp->pfs_1301.log = st->act.log; in pfsync_state_export()
5737 sp->pfs_1301.timeout = st->timeout; in pfsync_state_export()
5741 sp->pfs_1301.state_flags = st->state_flags; in pfsync_state_export()
5772 sp->pfs_1301.sync_flags |= PFSYNC_FLAG_SRCNODE; in pfsync_state_export()
5774 sp->pfs_1301.sync_flags |= PFSYNC_FLAG_NATSRCNODE; in pfsync_state_export()
5776 sp->pfs_1301.id = st->id; in pfsync_state_export()
5777 sp->pfs_1301.creatorid = st->creatorid; in pfsync_state_export()
5778 pf_state_peer_hton(&st->src, &sp->pfs_1301.src); in pfsync_state_export()
5779 pf_state_peer_hton(&st->dst, &sp->pfs_1301.dst); in pfsync_state_export()
5782 sp->pfs_1301.rule = htonl(-1); in pfsync_state_export()
5784 sp->pfs_1301.rule = htonl(st->rule->nr); in pfsync_state_export()
5786 sp->pfs_1301.anchor = htonl(-1); in pfsync_state_export()
5788 sp->pfs_1301.anchor = htonl(st->anchor->nr); in pfsync_state_export()
5790 sp->pfs_1301.nat_rule = htonl(-1); in pfsync_state_export()
5792 sp->pfs_1301.nat_rule = htonl(st->nat_rule->nr); in pfsync_state_export()
5794 pf_state_counter_hton(st->packets[0], sp->pfs_1301.packets[0]); in pfsync_state_export()
5795 pf_state_counter_hton(st->packets[1], sp->pfs_1301.packets[1]); in pfsync_state_export()
5796 pf_state_counter_hton(st->bytes[0], sp->pfs_1301.bytes[0]); in pfsync_state_export()
5797 pf_state_counter_hton(st->bytes[1], sp->pfs_1301.bytes[1]); in pfsync_state_export()