Home
last modified time | relevance | path

Searched refs:SCTP_BASE_INFO (Results 1 – 8 of 8) sorted by relevance

/freebsd-10-stable/sys/netinet/
Dsctp_lock_bsd.h89 if(rw_wowned(&SCTP_BASE_INFO(ipi_ep_mtx))) { \
90 rw_wunlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \
92 rw_destroy(&SCTP_BASE_INFO(ipi_ep_mtx)); \
96 rw_init(&SCTP_BASE_INFO(ipi_ep_mtx), "sctp-info");
100 rw_rlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \
147 rw_wlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \
151 #define SCTP_INP_INFO_RUNLOCK() rw_runlock(&SCTP_BASE_INFO(ipi_ep_mtx))
152 #define SCTP_INP_INFO_WUNLOCK() rw_wunlock(&SCTP_BASE_INFO(ipi_ep_mtx))
156 rw_init(&SCTP_BASE_INFO(ipi_addr_mtx), "sctp-addr")
158 if(rw_wowned(&SCTP_BASE_INFO(ipi_addr_mtx))) { \
[all …]
Dsctp_pcb.c91 spcb->ep_count = SCTP_BASE_INFO(ipi_count_ep); in sctp_fill_pcbinfo()
92 spcb->asoc_count = SCTP_BASE_INFO(ipi_count_asoc); in sctp_fill_pcbinfo()
93 spcb->laddr_count = SCTP_BASE_INFO(ipi_count_laddr); in sctp_fill_pcbinfo()
94 spcb->raddr_count = SCTP_BASE_INFO(ipi_count_raddr); in sctp_fill_pcbinfo()
95 spcb->chk_count = SCTP_BASE_INFO(ipi_count_chunk); in sctp_fill_pcbinfo()
96 spcb->readq_count = SCTP_BASE_INFO(ipi_count_readq); in sctp_fill_pcbinfo()
97 spcb->stream_oque = SCTP_BASE_INFO(ipi_count_strmoq); in sctp_fill_pcbinfo()
98 spcb->free_chunks = SCTP_BASE_INFO(ipi_free_chunks); in sctp_fill_pcbinfo()
188 bucket = &SCTP_BASE_INFO(sctp_vrfhash)[(vrf_id & SCTP_BASE_INFO(hashvrfmark))]; in sctp_allocate_vrf()
190 atomic_add_int(&SCTP_BASE_INFO(ipi_count_vrfs), 1); in sctp_allocate_vrf()
[all …]
Dsctp_var.h102 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), (_readq)); \
107 (_readq) = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_readq), struct sctp_queued_to_read); \
118 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_strmoq), (_strmoq)); \
123 (_strmoq) = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_strmoq), struct sctp_stream_queue_pending); \
143 (SCTP_BASE_INFO(ipi_free_chunks) > SCTP_BASE_SYSCTL(sctp_system_free_resc_limit))) { \
144 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), (_chk)); \
149 atomic_add_int(&SCTP_BASE_INFO(ipi_free_chunks), 1); \
152 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), (_chk)); \
159 (_chk) = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_chunk), struct sctp_tmit_chunk); \
168 atomic_subtract_int(&SCTP_BASE_INFO(ipi_free_chunks), 1); \
[all …]
Dsctputil.c347 sctp_clog.x.lock.info_lock = rw_wowned(&SCTP_BASE_INFO(ipi_ep_mtx)); in sctp_log_lock()
1463 LIST_FOREACH_SAFE(wi, &SCTP_BASE_INFO(addr_wq), sctp_nxt_addr, nwi) { in sctp_handle_addr_wq()
1494 LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr); in sctp_handle_addr_wq()
1974 tmr = &SCTP_BASE_INFO(addr_wq_timer); in sctp_timer_start()
2260 tmr = &SCTP_BASE_INFO(addr_wq_timer); in sctp_timer_stop()
4485 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), control); in sctp_add_to_readq()
4531 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), control); in sctp_add_to_readq()
6279 wi = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_dynamic_set_primary()
6298 LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr); in sctp_dynamic_set_primary()
7024 if (SCTP_BASE_INFO(udp4_tun_socket) != NULL) { in sctp_over_udp_stop()
[all …]
Dsctp_asconf.c652 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asconf_ack), ack); in sctp_handle_asconf()
793 ack = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_asconf_ack), in sctp_handle_asconf()
2274 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), l); in sctp_asconf_iterator_end()
2329 LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { in sctp_set_primary_ip_address()
3260 wi = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_addr_mgmt_ep_sa()
Dsctp_os_bsd.h152 #define SCTP_BASE_INFO(__m) V_system_base_info.sctppcbinfo.__m macro
Dsctp_sysctl.c379 LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { in sctp_sysctl_handle_assoclist()
407 LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { in sctp_sysctl_handle_assoclist()
Dsctp_input.c710 …head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag, SCTP_BASE_INFO(hashaso… in sctp_handle_nat_colliding_state()
731 …head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag, SCTP_BASE_INFO(hashaso… in sctp_handle_nat_colliding_state()
1967 head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag, in sctp_process_cookie_existing()
1968 SCTP_BASE_INFO(hashasocmark))]; in sctp_process_cookie_existing()