Searched refs:sctp_socket (Results 1 – 13 of 13) sorted by relevance
/freebsd/sys/netinet/ |
H A D | sctputil.h | 245 if (stcb->sctp_socket && ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \ 247 SCTP_SB_DECR(&stcb->sctp_socket->so_snd, sp->length); \ 255 if ((stcb->sctp_socket != NULL) && \ 258 SCTP_SB_INCR(&stcb->sctp_socket->so_snd, sz); \
|
H A D | sctputil.c | 356 sctp_clog.x.lock.sock = (void *)inp->sctp_socket; in sctp_log_lock() 375 if (inp && (inp->sctp_socket)) { in sctp_log_lock() 376 sctp_clog.x.lock.sock_lock = mtx_owned(SOCK_MTX(inp->sctp_socket)); in sctp_log_lock() 377 sctp_clog.x.lock.sockrcvbuf_lock = mtx_owned(SOCKBUF_MTX(&inp->sctp_socket->so_rcv)); in sctp_log_lock() 378 sctp_clog.x.lock.socksndbuf_lock = mtx_owned(SOCKBUF_MTX(&inp->sctp_socket->so_snd)); in sctp_log_lock() 527 if (stcb->sctp_socket) { in sctp_wakeup_log() 528 struct socket *so = stcb->sctp_socket; in sctp_wakeup_log() 1247 asoc->my_rwnd = max(SCTP_SB_LIMIT_RCV(inp->sctp_socket), SCTP_MINIMAL_RWND); in sctp_init_asoc() 1248 asoc->peers_rwnd = SCTP_SB_LIMIT_RCV(inp->sctp_socket); in sctp_init_asoc() 3236 &stcb->sctp_socket->so_rcv, 1, in sctp_notify_assoc_change() [all …]
|
H A D | sctp_indata.c | 86 if (stcb->sctp_socket == NULL) { in sctp_calc_rwnd() 98 calc = max(SCTP_SB_LIMIT_RCV(stcb->sctp_socket), SCTP_MINIMAL_RWND); in sctp_calc_rwnd() 102 calc = (uint32_t)sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv); in sctp_calc_rwnd() 562 &stcb->sctp_socket->so_rcv, 1, in sctp_queue_data_to_stream() 602 &stcb->sctp_socket->so_rcv, 1, in sctp_queue_data_to_stream() 662 sctp_sballoc(stcb, &stcb->sctp_socket->so_rcv, m); in sctp_setup_tail_pointer() 715 sctp_sballoc(stcb, &stcb->sctp_socket->so_rcv, m); in sctp_add_to_tail_pointer() 853 &stcb->sctp_socket->so_rcv, control->end_added, in sctp_handle_old_unordered_data() 885 &stcb->sctp_socket->so_rcv, control->end_added, in sctp_handle_old_unordered_data() 1048 if (stcb->sctp_socket) { in sctp_deliver_reasm_check() [all …]
|
H A D | sctp_os_bsd.h | 416 if ((local_inp != NULL) && (local_inp->sctp_socket != NULL)) { \ 417 o_flgs |= local_inp->sctp_socket->so_options & SO_DONTROUTE; \
|
H A D | sctp_pcb.h | 382 struct socket *sctp_socket; member 442 struct socket *sctp_socket; /* back pointer to socket */ member
|
H A D | sctp_peeloff.c | 116 n_inp->sctp_socket = so; in sctp_do_peeloff()
|
H A D | sctp_pcb.c | 1171 if ((inp->sctp_socket) && SCTP_IS_LISTENING(inp)) { in sctp_findassociation_ep_addr() 2280 inp->sctp_socket = so; in sctp_inpcb_alloc() 2525 stcb->sctp_socket = new_inp->sctp_socket; in sctp_move_pcb_and_assoc() 3212 so = inp->sctp_socket; in sctp_inpcb_free() 3246 stcb->sctp_socket = NULL; in sctp_inpcb_free() 3368 inp->sctp_socket = NULL; in sctp_inpcb_free() 3375 inp->sctp_socket = NULL; in sctp_inpcb_free() 3394 stcb->sctp_socket = NULL; in sctp_inpcb_free() 4199 stcb->sctp_socket = inp->sctp_socket; in sctp_aloc_assoc_locked() 4304 soisconnecting(inp->sctp_socket); in sctp_aloc_assoc_connected() [all …]
|
H A D | sctp_input.c | 891 if (stcb->sctp_socket) { in sctp_handle_shutdown() 986 if (stcb->sctp_socket) { in sctp_handle_shutdown_ack() 989 SCTP_SB_CLEAR(stcb->sctp_socket->so_snd); in sctp_handle_shutdown_ack() 1505 soisconnected(stcb->sctp_socket); in sctp_process_cookie_existing() 1693 soisconnected(stcb->sctp_socket); in sctp_process_cookie_existing() 2178 soisconnected(stcb->sctp_socket); in sctp_process_cookie_new() 2607 oso = (*inp_p)->sctp_socket; in sctp_handle_cookie_echo() 2646 inp->sctp_socket = so; in sctp_handle_cookie_echo() 2786 soisconnected(stcb->sctp_socket); in sctp_handle_cookie_ack() 3029 if (stcb->sctp_socket) { in sctp_handle_shutdown_complete() [all …]
|
H A D | sctp_usrreq.c | 376 if (stcb == NULL || inp == NULL || inp->sctp_socket == NULL) { in sctp_getcred() 397 error = cr_canseesocket(req->td->td_ucred, inp->sctp_socket); in sctp_getcred() 402 cru2x(inp->sctp_socket->so_cred, &xuc); in sctp_getcred() 2744 sasoc->sasoc_local_rwnd = (uint32_t)sbspace(&inp->sctp_socket->so_rcv); 7307 SOCKBUF_LOCK(&inp->sctp_socket->so_snd); 7308 if (sowriteable(inp->sctp_socket)) { 7309 sowwakeup_locked(inp->sctp_socket); 7311 SOCKBUF_UNLOCK(&inp->sctp_socket->so_snd); 7316 SOCKBUF_LOCK(&inp->sctp_socket->so_rcv); 7317 if (soreadable(inp->sctp_socket)) { [all …]
|
H A D | sctp_sysctl.c | 440 xinpcb.socket = (uintptr_t)inp->sctp_socket; in sctp_sysctl_handle_assoclist() 441 so = inp->sctp_socket; in sctp_sysctl_handle_assoclist()
|
H A D | sctp_output.c | 4686 init->init.a_rwnd = htonl(max(inp->sctp_socket ? SCTP_SB_LIMIT_RCV(inp->sctp_socket) : 0, in sctp_send_initiate() 5900 so = inp->sctp_socket; in sctp_send_initiate_ack() 7207 if (SCTP_SB_LIMIT_SND(stcb->sctp_socket) < frag_point) { in sctp_can_we_split_this() 7323 if ((stcb->sctp_socket != NULL) && in sctp_move_to_outqueue() 7326 SCTP_SB_DECR(&stcb->sctp_socket->so_snd, sp->length); in sctp_move_to_outqueue() 7922 if (stcb->sctp_socket) in sctp_med_chunk_output() 7923 max_send_per_dest = SCTP_SB_LIMIT_SND(stcb->sctp_socket) / asoc->numnets; in sctp_med_chunk_output() 10316 if (inp->sctp_socket == NULL) { in sctp_output() 10320 return (sctp_sosend(inp->sctp_socket, in sctp_output() 11568 if (stcb->sctp_socket == NULL) { in sctp_send_packet_dropped() [all …]
|
H A D | sctp_auth.c | 1755 &stcb->sctp_socket->so_rcv, 1, in sctp_notify_authentication()
|
/freebsd/sys/netinet6/ |
H A D | sctp6_usrreq.c | 397 if (stcb == NULL || inp == NULL || inp->sctp_socket == NULL) { in sctp6_getcred() 417 error = cr_canseesocket(req->td->td_ucred, inp->sctp_socket); in sctp6_getcred() 422 cru2x(inp->sctp_socket->so_cred, &xuc); in sctp6_getcred()
|