VNET_DECLARE
#define NFSD_VNET_DECLARE(t, n) VNET_DECLARE(t, n)
#define KGSS_VNET_DECLARE(t, n) VNET_DECLARE(t, n)
VNET_DECLARE(struct hhook_head *, ipsec_hhh_in[HHOOK_IPSEC_COUNT]);
VNET_DECLARE(struct hhook_head *, ipsec_hhh_out[HHOOK_IPSEC_COUNT]);
VNET_DECLARE(struct ifnethead, ifnet);
VNET_DECLARE(struct ifgrouphead, ifg_head);
VNET_DECLARE(if_t, loif); /* first loopback interface */
VNET_DECLARE(struct pfil_head *, link_pfil_head);
VNET_DECLARE(int, vlan_mtag_pcp);
VNET_DECLARE(struct pf_statelim_id_tree, pf_statelim_id_tree_active);
VNET_DECLARE(struct pf_statelim_list, pf_statelim_list_active);
VNET_DECLARE(struct pf_statelim_id_tree, pf_statelim_id_tree_inactive);
VNET_DECLARE(struct pf_statelim_nm_tree, pf_statelim_nm_tree_inactive);
VNET_DECLARE(struct pf_statelim_list, pf_statelim_list_inactive);
VNET_DECLARE(struct pf_sourcelim_id_tree, pf_sourcelim_id_tree_active);
VNET_DECLARE(struct pf_sourcelim_list, pf_sourcelim_list_active);
VNET_DECLARE(struct pf_sourcelim_id_tree, pf_sourcelim_id_tree_inactive);
VNET_DECLARE(struct pf_sourcelim_nm_tree, pf_sourcelim_nm_tree_inactive);
VNET_DECLARE(struct pf_sourcelim_list, pf_sourcelim_list_inactive);
VNET_DECLARE(pfsync_state_import_t *, pfsync_state_import_ptr);
VNET_DECLARE(pfsync_insert_state_t *, pfsync_insert_state_ptr);
VNET_DECLARE(pfsync_update_state_t *, pfsync_update_state_ptr);
VNET_DECLARE(pfsync_delete_state_t *, pfsync_delete_state_ptr);
VNET_DECLARE(pfsync_clear_states_t *, pfsync_clear_states_ptr);
VNET_DECLARE(pfsync_defer_t *, pfsync_defer_ptr);
VNET_DECLARE(pflow_export_state_t *, pflow_export_state_ptr);
VNET_DECLARE(u_long, pf_hashmask);
VNET_DECLARE(u_long, pf_srchashmask);
VNET_DECLARE(u_long, pf_udpendpointhashmask);
VNET_DECLARE(struct pf_keyhash *, pf_keyhash);
VNET_DECLARE(struct pf_idhash *, pf_idhash);
VNET_DECLARE(struct pf_udpendpointhash *, pf_udpendpointhash);
VNET_DECLARE(struct pf_srchash *, pf_srchash);
VNET_DECLARE(void *, pf_swi_cookie);
VNET_DECLARE(struct intr_event *, pf_swi_ie);
VNET_DECLARE(struct unrhdr64, pf_stateid);
VNET_DECLARE(struct pf_altqqueue, pf_altqs[4]);
VNET_DECLARE(struct pf_kpalist, pf_pabuf[3]);
VNET_DECLARE(u_int32_t, ticket_altqs_active);
VNET_DECLARE(u_int32_t, ticket_altqs_inactive);
VNET_DECLARE(int, altqs_inactive_open);
VNET_DECLARE(u_int32_t, ticket_pabuf);
VNET_DECLARE(struct pf_altqqueue *, pf_altqs_active);
VNET_DECLARE(struct pf_altqqueue *, pf_altq_ifs_active);
VNET_DECLARE(struct pf_altqqueue *, pf_altqs_inactive);
VNET_DECLARE(struct pf_altqqueue *, pf_altq_ifs_inactive);
VNET_DECLARE(struct pf_krulequeue, pf_unlinked_rules);
VNET_DECLARE(struct allkiflist_head, pf_allkiflist);
VNET_DECLARE(size_t, pf_allkifcount);
VNET_DECLARE(struct pfi_kkif *, pf_kifmarker);
VNET_DECLARE(struct allrulelist_head, pf_allrulelist);
VNET_DECLARE(size_t, pf_allrulecount);
VNET_DECLARE(struct pf_krule *, pf_rulemarker);
VNET_DECLARE(uma_zone_t, pf_state_z);
VNET_DECLARE(uma_zone_t, pf_state_key_z);
VNET_DECLARE(uma_zone_t, pf_udp_mapping_z);
VNET_DECLARE(uma_zone_t, pf_state_scrub_z);
VNET_DECLARE(uma_zone_t, pf_anchor_z);
VNET_DECLARE(uma_zone_t, pf_eth_anchor_z);
VNET_DECLARE(struct pf_krule, pf_default_rule);
VNET_DECLARE(struct pfi_kkif *, pfi_all);
VNET_DECLARE(struct pf_kstatus, pf_status);
VNET_DECLARE(struct pf_limit, pf_limits[PF_LIMIT_MAX]);
VNET_DECLARE(struct pf_kanchor_global, pf_anchors);
VNET_DECLARE(struct pf_kanchor, pf_main_anchor);
VNET_DECLARE(struct pf_keth_anchor_global, pf_keth_anchors);
VNET_DECLARE(struct pf_keth_anchor, pf_main_keth_anchor);
VNET_DECLARE(struct pf_keth_ruleset*, pf_keth);
VNET_DECLARE(struct rmlock, pf_rules_lock);
VNET_DECLARE(struct rmlock, pf_tags_lock);
VNET_DECLARE(uint32_t, _rt_numfibs); /* number of existing route tables */
VNET_DECLARE(u_int, rt_add_addr_allfibs); /* Announce interfaces to all fibs */
VNET_DECLARE(u_int, fib_hash_outbound);
VNET_DECLARE(struct fib_dp *, inet_dp);
VNET_DECLARE(struct fib_dp *, inet6_dp);
VNET_DECLARE(counter_u64_t, name[sizeof(type) / sizeof(uint64_t)])
VNET_DECLARE(struct cc_algo *, default_cc_ptr);
VNET_DECLARE(int, cc_do_abe);
VNET_DECLARE(int, cc_abe_frlossreduce);
VNET_DECLARE(uint32_t, newreno_beta);
VNET_DECLARE(uint32_t, newreno_beta_ecn);
VNET_DECLARE(struct inpcbinfo, ripcbinfo);
VNET_DECLARE(bool, ip_allow_net0);
VNET_DECLARE(bool, ip_allow_net240);
VNET_DECLARE(uint32_t, in_loopback_mask);
VNET_DECLARE(int, ipport_reservedhigh);
VNET_DECLARE(int, ipport_reservedlow);
VNET_DECLARE(int, ipport_lowfirstauto);
VNET_DECLARE(int, ipport_lowlastauto);
VNET_DECLARE(int, ipport_firstauto);
VNET_DECLARE(int, ipport_lastauto);
VNET_DECLARE(int, ipport_hifirstauto);
VNET_DECLARE(int, ipport_hilastauto);
VNET_DECLARE(int, ipport_randomized);
VNET_DECLARE(uint32_t, in_pcbhashseed);
VNET_DECLARE(struct in_ifaddrhashhead *, in_ifaddrhashtbl);
VNET_DECLARE(struct in_ifaddrhead, in_ifaddrhead);
VNET_DECLARE(u_long, in_ifaddrhmask); /* mask for hash table */
VNET_DECLARE(bool, ip_mrouting_enabled);
VNET_DECLARE(int, ip_doopts); /* process or ignore IP options */
VNET_DECLARE(int, ip_defttl); /* default IP ttl */
VNET_DECLARE(int, ipforwarding); /* ip forwarding */
VNET_DECLARE(int, ipsendredirects);
VNET_DECLARE(int, ipstealth); /* stealth forwarding */
VNET_DECLARE(struct socket *, ip_rsvpd); /* reservation protocol daemon*/
VNET_DECLARE(int, rsvp_on);
VNET_DECLARE(int, drop_redirect);
VNET_DECLARE(int, ip_random_id);
VNET_DECLARE(struct pfil_head *, inet_pfil_head);
VNET_DECLARE(struct pfil_head *, inet_local_pfil_head);
VNET_DECLARE(ip_fw_ctl_ptr_t, ip_fw_ctl_ptr);
VNET_DECLARE(struct sctp_base_info, system_base_info);
VNET_DECLARE(unsigned int, tcp_fastopen_client_enable);
VNET_DECLARE(unsigned int, tcp_fastopen_server_enable);
VNET_DECLARE(struct uma_zone *, sack_hole_zone);
VNET_DECLARE(uint32_t, newreno_beta);
VNET_DECLARE(uint32_t, newreno_beta_ecn);
VNET_DECLARE(int, tcp_always_keepalive);
VNET_DECLARE(int, tcp_pmtud_blackhole_detect);
VNET_DECLARE(int, tcp_pmtud_blackhole_mss);
VNET_DECLARE(int, tcp_v6pmtud_blackhole_mss);
VNET_DECLARE(int, tcp_msl);
VNET_DECLARE(int, tcp_msl_local);
VNET_DECLARE(counter_u64_t, tcps_states[TCP_NSTATES]);
VNET_DECLARE(int, tcp_log_in_vain);
VNET_DECLARE(int, drop_synfin);
VNET_DECLARE(int, path_mtu_discovery);
VNET_DECLARE(int, tcp_abc_l_var);
VNET_DECLARE(uint32_t, tcp_ack_war_cnt);
VNET_DECLARE(uint32_t, tcp_ack_war_time_window);
VNET_DECLARE(int, tcp_autorcvbuf_max);
VNET_DECLARE(int, tcp_autosndbuf_inc);
VNET_DECLARE(int, tcp_autosndbuf_max);
VNET_DECLARE(int, tcp_bind_all_fibs);
VNET_DECLARE(int, tcp_delack_enabled);
VNET_DECLARE(int, tcp_do_autorcvbuf);
VNET_DECLARE(int, tcp_do_autosndbuf);
VNET_DECLARE(int, tcp_do_ecn);
VNET_DECLARE(int, tcp_do_lrd);
VNET_DECLARE(int, tcp_do_prr);
VNET_DECLARE(int, tcp_do_prr_conservative);
VNET_DECLARE(int, tcp_do_newcwv);
VNET_DECLARE(int, tcp_do_rfc1323);
VNET_DECLARE(int, tcp_tolerate_missing_ts);
VNET_DECLARE(int, tcp_do_rfc3042);
VNET_DECLARE(int, tcp_do_rfc3390);
VNET_DECLARE(int, tcp_do_rfc3465);
VNET_DECLARE(int, tcp_do_sack);
VNET_DECLARE(int, tcp_do_tso);
VNET_DECLARE(int, tcp_ecn_maxretries);
VNET_DECLARE(int, tcp_initcwnd_segments);
VNET_DECLARE(int, tcp_insecure_rst);
VNET_DECLARE(int, tcp_insecure_syn);
VNET_DECLARE(int, tcp_insecure_ack);
VNET_DECLARE(uint32_t, tcp_map_entries_limit);
VNET_DECLARE(uint32_t, tcp_map_split_limit);
VNET_DECLARE(int, tcp_minmss);
VNET_DECLARE(int, tcp_mssdflt);
VNET_DECLARE(int, tcp_perconn_stats_dflt_tpl);
VNET_DECLARE(int, tcp_perconn_stats_enable);
VNET_DECLARE(int, tcp_recvspace);
VNET_DECLARE(int, tcp_retries);
VNET_DECLARE(int, tcp_sack_globalholes);
VNET_DECLARE(int, tcp_sack_globalmaxholes);
VNET_DECLARE(int, tcp_sack_maxholes);
VNET_DECLARE(int, tcp_sack_tso);
VNET_DECLARE(int, tcp_sc_rst_sock_fail);
VNET_DECLARE(int, tcp_sendspace);
VNET_DECLARE(int, tcp_udp_tunneling_overhead);
VNET_DECLARE(int, tcp_udp_tunneling_port);
VNET_DECLARE(struct inpcbinfo, tcbinfo);
VNET_DECLARE(struct hhook_head *, tcp_hhh[HHOOK_TCP_LAST + 1]);
VNET_DECLARE(struct inpcbinfo, udbinfo);
VNET_DECLARE(struct inpcbinfo, ulitecbinfo);
VNET_DECLARE(int, udp_bind_all_fibs);
VNET_DECLARE(int, udp_blackhole);
VNET_DECLARE(bool, udp_blackhole_local);
VNET_DECLARE(int, udp_cksum);
VNET_DECLARE(int, udp_log_in_vain);
VNET_DECLARE(int, zero_checksum_port);
VNET_DECLARE(struct inpcbinfo, ripcbinfo);
VNET_DECLARE(int, rip_bind_all_fibs);
VNET_DECLARE(struct inpcbinfo, ripcbinfo);
VNET_DECLARE(struct in6_ifaddrhead, in6_ifaddrhead);
VNET_DECLARE(struct in6_ifaddrlisthead *, in6_ifaddrhashtbl);
VNET_DECLARE(u_long, in6_ifaddrhmask);
VNET_DECLARE(bool, ip6_mrouting_enabled);
VNET_DECLARE(int, ip6_defhlim); /* default hop limit */
VNET_DECLARE(int, ip6_defmcasthlim); /* default multicast hop limit */
VNET_DECLARE(int, ip6_forwarding); /* act as router? */
VNET_DECLARE(int, ip6_use_deprecated); /* allow deprecated addr as source */
VNET_DECLARE(int, ip6_rr_prune); /* router renumbering prefix
VNET_DECLARE(int, ip6_mcast_pmtu); /* enable pMTU discovery for multicast? */
VNET_DECLARE(int, ip6_v6only);
VNET_DECLARE(int, ip6_sendredirects); /* send IP redirects when forwarding? */
VNET_DECLARE(int, ip6_accept_rtadv); /* Acts as a host not a router */
VNET_DECLARE(int, ip6_no_radr); /* No defroute from RA */
VNET_DECLARE(int, ip6_norbit_raif); /* Disable R-bit in NA on RA
VNET_DECLARE(int, ip6_rfc6204w3); /* Accept defroute from RA even when
VNET_DECLARE(int, ip6_hdrnestlimit); /* upper limit of # of extension
VNET_DECLARE(int, ip6_dad_count); /* DupAddrDetectionTransmits */
VNET_DECLARE(int, ip6_grand_count); /* Gratuitous ND Transmits */
VNET_DECLARE(int, ip6_auto_flowlabel);
VNET_DECLARE(int, ip6_auto_linklocal);
VNET_DECLARE(int, ip6_use_tempaddr); /* Whether to use temporary addresses */
VNET_DECLARE(int, ip6_prefer_tempaddr); /* Whether to prefer temporary
VNET_DECLARE(bool, ip6_use_stableaddr); /* Whether to use stable address generation (RFC 7217) */
VNET_DECLARE(u_int, ip6_stableaddr_maxretries);
VNET_DECLARE(int, ip6_stableaddr_netifsource);
VNET_DECLARE(int, ip6_use_defzone); /* Whether to use the default scope
VNET_DECLARE(struct pfil_head *, inet6_pfil_head);
VNET_DECLARE(struct pfil_head *, inet6_local_pfil_head);
VNET_DECLARE(int, ip6stealth);
VNET_DECLARE(bool, ip6_log_cannot_forward);
VNET_DECLARE(int, nd6_mmaxtries);
VNET_DECLARE(struct nd_prhead, nd_prefix);
VNET_DECLARE(int, nd6_debug);
VNET_DECLARE(struct rwlock, nd6_lock);
VNET_DECLARE(uint64_t, nd6_list_genid);
VNET_DECLARE(struct mtx, nd6_onlink_mtx);
VNET_DECLARE(int, nd6_defifindex);
VNET_DECLARE(int, ip6_desync_factor); /* seconds */
VNET_DECLARE(uint32_t, ip6_temp_max_desync_factor); /* seconds */
VNET_DECLARE(u_int32_t, ip6_temp_preferred_lifetime); /* seconds */
VNET_DECLARE(u_int32_t, ip6_temp_valid_lifetime); /* seconds */
VNET_DECLARE(int, ip6_temp_regen_advance); /* seconds */
VNET_DECLARE(int, nd6_recalc_reachtm_interval);
VNET_DECLARE(struct inpcbinfo, ripcbinfo);
VNET_DECLARE(int, rip_bind_all_fibs);
VNET_DECLARE(int, tcp_v6mssdflt); /* XXX */
VNET_DECLARE(int, ah_enable);
VNET_DECLARE(int, ah_cleartos);
VNET_DECLARE(int, esp_enable);
VNET_DECLARE(int, esp_ctr_compatibility);
VNET_DECLARE(int, ipcomp_enable);
VNET_DECLARE(int, ipsec_debug);
VNET_DECLARE(int, ipsec_replay);
VNET_DECLARE(int, ipsec_integrity);
VNET_DECLARE(int, ip4_esp_trans_deflev);
VNET_DECLARE(int, ip4_esp_net_deflev);
VNET_DECLARE(int, ip4_ah_trans_deflev);
VNET_DECLARE(int, ip4_ah_net_deflev);
VNET_DECLARE(int, ip4_ipsec_dfbit);
VNET_DECLARE(int, ip4_ipsec_min_pmtu);
VNET_DECLARE(int, ip4_ipsec_ecn);
VNET_DECLARE(int, ip4_ipsec_random_id);
VNET_DECLARE(int, crypto_support);
VNET_DECLARE(int, async_crypto);
VNET_DECLARE(int, natt_cksum_policy);
VNET_DECLARE(int, ip6_esp_trans_deflev);
VNET_DECLARE(int, ip6_esp_net_deflev);
VNET_DECLARE(int, ip6_ah_trans_deflev);
VNET_DECLARE(int, ip6_ah_net_deflev);
VNET_DECLARE(int, ip6_ipsec_ecn);
VNET_DECLARE(uint32_t, key_debug_level);
VNET_DECLARE(struct nl_control, nl_ctl);
VNET_DECLARE(ipf_main_softc_t, ipfmain);
VNET_DECLARE(ipf_main_softc_t, ipfmain);
VNET_DECLARE(struct dn_parms, dn_cfg);
VNET_DECLARE(u_int64_t, norule_counter);
VNET_DECLARE(int, verbose_limit);
VNET_DECLARE(int, fw_one_pass);
VNET_DECLARE(int, fw_verbose);
VNET_DECLARE(struct ip_fw_chain, layer3_chain);
VNET_DECLARE(int, ipfw_vnet_ready);
VNET_DECLARE(int, skipto_cache);
VNET_DECLARE(u_int32_t, set_disable);
VNET_DECLARE(int, autoinc_step);
VNET_DECLARE(unsigned int, fw_tables_max);
VNET_DECLARE(unsigned int, fw_tables_sets);
VNET_DECLARE(int, nat64_debug);
VNET_DECLARE(uint32_t, nat64clat_eid);
VNET_DECLARE(uint32_t, nat64lsn_eid);
VNET_DECLARE(uint32_t, nat64stl_eid);
VNET_DECLARE(int, pf_vnet_active);
VNET_DECLARE(int, pf_vnet_active);
#define KRPC_VNET_DECLARE(t, n) VNET_DECLARE(t, n)