Searched refs:V_pf_status (Results 1 – 11 of 11) sorted by relevance
/freebsd/sys/netpfil/pf/ |
H A D | pf_syncookies.c | 91 #define DPFPRINTF(n, x) if (V_pf_status.debug >= (n)) printf x 159 V_pf_status.syncookies_mode != PF_SYNCOOKIES_NEVER); in pf_get_syncookies() 161 V_pf_status.syncookies_mode == PF_SYNCOOKIES_ADAPTIVE); in pf_get_syncookies() 165 atomic_load_32(&V_pf_status.states_halfopen)); in pf_get_syncookies() 251 if (V_pf_status.syncookies_mode == mode) in pf_syncookies_setmode() 254 V_pf_status.syncookies_mode = mode; in pf_syncookies_setmode() 255 if (V_pf_status.syncookies_mode == PF_SYNCOOKIES_ALWAYS) { in pf_syncookies_setmode() 257 V_pf_status.syncookies_active = true; in pf_syncookies_setmode() 271 if (V_pf_status.syncookies_mode != PF_SYNCOOKIES_ADAPTIVE) in pf_synflood_check() 272 return (V_pf_status.syncookies_mode); in pf_synflood_check() [all …]
|
H A D | pf_ioctl.c | 220 #define DPFPRINTF(n, x) if (V_pf_status.debug >= (n)) printf x 326 bzero(&V_pf_status, sizeof(V_pf_status)); in pfattach_vnet() 399 V_pf_status.debug = PF_DEBUG_URGENT; in pfattach_vnet() 407 V_pf_status.reass = 0; in pfattach_vnet() 413 V_pf_status.hostid = arc4random(); in pfattach_vnet() 416 V_pf_status.counters[i] = counter_u64_alloc(M_WAITOK); in pfattach_vnet() 418 V_pf_status.lcounters[i] = counter_u64_alloc(M_WAITOK); in pfattach_vnet() 420 pf_counter_u64_init(&V_pf_status.fcounters[i], M_WAITOK); in pfattach_vnet() 422 V_pf_status.scounters[i] = counter_u64_alloc(M_WAITOK); in pfattach_vnet() 1398 if (V_pf_status.keep_counters && old_tree != NULL) { in pf_commit_rules() [all …]
|
H A D | if_pfsync.c | 113 #define DPFPRINTF(n, x) if (V_pf_status.debug >= (n)) printf x 537 if (V_pf_status.debug >= PF_DEBUG_MISC) in pfsync_state_import() 544 if (V_pf_status.debug >= PF_DEBUG_MISC) in pfsync_state_import() 838 if (!sc || !sc->sc_sync_if || !V_pf_status.running || in pfsync_input() 888 if (!bcmp(&ph->pfcksum, &V_pf_status.pf_chksum, PF_MD5_DIGEST_LENGTH)) in pfsync_input() 940 if (!sc || !sc->sc_sync_if || !V_pf_status.running || in pfsync6_input() 991 if (!bcmp(&ph->pfcksum, &V_pf_status.pf_chksum, PF_MD5_DIGEST_LENGTH)) in pfsync6_input() 1105 if (V_pf_status.debug >= PF_DEBUG_MISC) in pfsync_in_ins() 1229 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pfsync_in_upd() 1314 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pfsync_in_upd_c() [all …]
|
H A D | pf_nl.c | 1122 strlcpy(V_pf_status.ifname, attrs.ifname, IFNAMSIZ); in pf_handle_set_statusif() 1194 nlattr_add_string(nw, PF_GS_IFNAME, V_pf_status.ifname); in pf_handle_get_status() 1195 nlattr_add_bool(nw, PF_GS_RUNNING, V_pf_status.running); in pf_handle_get_status() 1196 nlattr_add_u32(nw, PF_GS_SINCE, V_pf_status.since); in pf_handle_get_status() 1197 nlattr_add_u32(nw, PF_GS_DEBUG, V_pf_status.debug); in pf_handle_get_status() 1198 nlattr_add_u32(nw, PF_GS_HOSTID, ntohl(V_pf_status.hostid)); in pf_handle_get_status() 1199 nlattr_add_u32(nw, PF_GS_STATES, V_pf_status.states); in pf_handle_get_status() 1200 nlattr_add_u32(nw, PF_GS_SRC_NODES, V_pf_status.src_nodes); in pf_handle_get_status() 1201 nlattr_add_u32(nw, PF_GS_REASSEMBLE, V_pf_status.reass); in pf_handle_get_status() 1202 nlattr_add_u32(nw, PF_GS_SYNCOOKIES_ACTIVE, V_pf_status.syncookies_active); in pf_handle_get_status() [all …]
|
H A D | pf_lb.c | 74 #define DPFPRINTF(n, x) if (V_pf_status.debug >= (n)) printf x 684 counter_u64_add(V_pf_status.counters[reason], 1); in pf_map_addr() 723 if (V_pf_status.debug >= PF_DEBUG_NOISY) { in pf_map_addr_sn() 744 if (V_pf_status.debug >= PF_DEBUG_NOISY && in pf_map_addr_sn() 758 counter_u64_add(V_pf_status.counters[reason], 1); in pf_map_addr_sn() 1044 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pf_get_transaddr_af() 1130 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pf_get_transaddr_af()
|
H A D | pf.c | 120 #define DPFPRINTF(n, x) if (V_pf_status.debug >= (n)) printf x 790 if (s->creatorid == V_pf_status.hostid && in pf_set_protostate() 796 atomic_add_32(&V_pf_status.states_halfopen, -1); in pf_set_protostate() 865 counter_u64_add(V_pf_status.lcounters[LCNT_SRCCONN], 1); in pf_src_connlimit() 871 counter_u64_add(V_pf_status.lcounters[LCNT_SRCCONNRATE], 1); in pf_src_connlimit() 921 counter_u64_add(V_pf_status.lcounters[LCNT_OVERLOAD_TABLE], 1); in pf_overload_task() 922 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pf_overload_task() 960 V_pf_status.lcounters[LCNT_OVERLOAD_FLUSH], 1); in pf_overload_task() 993 if (V_pf_status.debug >= PF_DEBUG_MISC) in pf_overload_task() 1008 counter_u64_add(V_pf_status.scounters[SCNT_SRC_NODE_SEARCH], 1); in pf_find_src_node() [all …]
|
H A D | pf_norm.c | 157 if (V_pf_status.debug >= PF_DEBUG_MISC) { \ 1147 if (((!scrub_compat && V_pf_status.reass & PF_REASS_NODF) || in pf_normalize_ip() 1184 if ((!scrub_compat && V_pf_status.reass) || in pf_normalize_ip() 1610 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pf_normalize_tcp_stateful() 1683 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pf_normalize_tcp_stateful() 1693 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pf_normalize_tcp_stateful() 1815 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pf_normalize_tcp_stateful() 1863 if (V_pf_status.debug >= PF_DEBUG_MISC) { in pf_normalize_tcp_stateful() 1889 if (V_pf_status.debug >= PF_DEBUG_MISC && dst->scrub && in pf_normalize_tcp_stateful()
|
H A D | pf_osfp.c | 44 if (V_pf_status.debug >= PF_DEBUG_NOISY) \
|
H A D | pf_ruleset.c | 63 if (V_pf_status.debug >= PF_DEBUG_NOISY) \
|
H A D | pf_table.c | 52 #define DPFPRINTF(n, x) if (V_pf_status.debug >= (n)) printf x
|
/freebsd/sys/net/ |
H A D | pfvar.h | 1743 counter_u64_add(V_pf_status.counters[x], 1); \ 2567 #define V_pf_status VNET(pf_status) macro
|