Lines Matching refs:sctp_flags
743 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) { in sctp_does_stcb_own_this_addr()
936 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_tcb_special_locate()
982 if ((inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) == 0) { in sctp_tcb_special_locate()
1177 if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_findassociation_ep_addr()
1178 (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { in sctp_findassociation_ep_addr()
1204 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_findassociation_ep_addr()
1308 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_findassociation_ep_addr()
1434 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_findasoc_ep_asocid_locked()
1523 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_endpoint_probe()
1527 if ((inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) && in sctp_endpoint_probe()
1533 if ((inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) && in sctp_endpoint_probe()
1555 if ((inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) == 0) { in sctp_endpoint_probe()
1607 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_endpoint_probe()
1611 if ((inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL)) { in sctp_endpoint_probe()
1696 if ((t_inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) && in sctp_isport_inuse()
1698 if (inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) { in sctp_isport_inuse()
1705 } else if (t_inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) { in sctp_isport_inuse()
1710 if ((inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) && in sctp_isport_inuse()
1736 if ((inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL) == 0) { in sctp_swap_inpcb_for_listen()
1747 if (tinp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_swap_inpcb_for_listen()
1750 if (tinp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) { in sctp_swap_inpcb_for_listen()
1759 tinp->sctp_flags |= SCTP_PCB_FLAGS_IN_TCPPOOL; in sctp_swap_inpcb_for_listen()
1766 inp->sctp_flags &= ~SCTP_PCB_FLAGS_IN_TCPPOOL; in sctp_swap_inpcb_for_listen()
2015 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_findassoc_by_vtag()
2136 if (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL) { in sctp_findassociation_addr()
2340 inp->sctp_flags = (SCTP_PCB_FLAGS_UDPTYPE | in sctp_inpcb_alloc()
2346 inp->sctp_flags = (SCTP_PCB_FLAGS_TCPTYPE | in sctp_inpcb_alloc()
2513 if (old_inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) { in sctp_move_pcb_and_assoc()
2557 new_inp->sctp_flags &= ~SCTP_PCB_FLAGS_UNBOUND; in sctp_move_pcb_and_assoc()
2584 if ((new_inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) == 0) { in sctp_move_pcb_and_assoc()
2741 if ((inp->sctp_flags & SCTP_PCB_FLAGS_UNBOUND) == 0) { in sctp_inpcb_bind_locked()
2962 if (inp->sctp_flags & (SCTP_PCB_FLAGS_SOCKET_GONE | in sctp_inpcb_bind_locked()
2975 inp->sctp_flags |= SCTP_PCB_FLAGS_BOUNDALL; in sctp_inpcb_bind_locked()
3075 inp->sctp_flags &= ~SCTP_PCB_FLAGS_BOUNDALL; in sctp_inpcb_bind_locked()
3091 inp->sctp_flags |= SCTP_PCB_FLAGS_IN_TCPPOOL; in sctp_inpcb_bind_locked()
3103 KASSERT((inp->sctp_flags & SCTP_PCB_FLAGS_UNBOUND) != 0, in sctp_inpcb_bind_locked()
3105 inp->sctp_flags &= ~SCTP_PCB_FLAGS_UNBOUND; in sctp_inpcb_bind_locked()
3228 KASSERT((inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) != 0, in sctp_inpcb_free()
3230 KASSERT((inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) == 0, in sctp_inpcb_free()
3233 inp->sctp_flags &= ~SCTP_PCB_FLAGS_CLOSE_IP; in sctp_inpcb_free()
3235 inp->sctp_flags |= SCTP_PCB_FLAGS_DONT_WAKE; in sctp_inpcb_free()
3236 inp->sctp_flags &= ~SCTP_PCB_FLAGS_WAKEINPUT; in sctp_inpcb_free()
3237 inp->sctp_flags &= ~SCTP_PCB_FLAGS_WAKEOUTPUT; in sctp_inpcb_free()
3391 if ((inp->sctp_flags & SCTP_PCB_FLAGS_UNBOUND) == 0) { in sctp_inpcb_free()
3397 inp->sctp_flags |= SCTP_PCB_FLAGS_UNBOUND; in sctp_inpcb_free()
3463 (inp->sctp_flags & SCTP_PCB_FLAGS_CLOSE_IP)) { in sctp_inpcb_free()
3474 inp->sctp_flags |= SCTP_PCB_FLAGS_SOCKET_ALLGONE; in sctp_inpcb_free()
4027 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_aloc_a_assoc_id()
4089 if (inp->sctp_flags & (SCTP_PCB_FLAGS_SOCKET_GONE | SCTP_PCB_FLAGS_SOCKET_ALLGONE)) { in sctp_aloc_assoc_locked()
4094 if ((inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL) && in sctp_aloc_assoc_locked()
4096 (inp->sctp_flags & SCTP_PCB_FLAGS_CONNECTED))) { in sctp_aloc_assoc_locked()
4107 if ((inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL) || in sctp_aloc_assoc_locked()
4108 (inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE)) { in sctp_aloc_assoc_locked()
4109 if ((inp->sctp_flags & SCTP_PCB_FLAGS_WAS_CONNECTED) || in sctp_aloc_assoc_locked()
4110 (inp->sctp_flags & SCTP_PCB_FLAGS_WAS_ABORTED)) { in sctp_aloc_assoc_locked()
4150 ((inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) && in sctp_aloc_assoc_locked()
4170 ((inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) == 0)) { in sctp_aloc_assoc_locked()
4186 if (inp->sctp_flags & SCTP_PCB_FLAGS_UNBOUND) { in sctp_aloc_assoc_locked()
4305 if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) && in sctp_aloc_assoc_connected()
4315 if (stcb != NULL && (inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE)) { in sctp_aloc_assoc_connected()
4316 inp->sctp_flags |= SCTP_PCB_FLAGS_CONNECTED; in sctp_aloc_assoc_connected()
4606 if ((inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) || in sctp_free_assoc()
4607 (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) in sctp_free_assoc()
4678 (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) || in sctp_free_assoc()
4679 (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) { in sctp_free_assoc()
4683 if ((inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) || in sctp_free_assoc()
4684 (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) in sctp_free_assoc()
4722 if ((inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) || in sctp_free_assoc()
4723 (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) in sctp_free_assoc()
4727 if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_free_assoc()
4728 (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { in sctp_free_assoc()
4733 if (inp->sctp_flags & SCTP_PCB_FLAGS_CONNECTED) { in sctp_free_assoc()
4734 inp->sctp_flags &= ~SCTP_PCB_FLAGS_CONNECTED; in sctp_free_assoc()
4735 inp->sctp_flags |= SCTP_PCB_FLAGS_WAS_CONNECTED; in sctp_free_assoc()
5037 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) { in sctp_free_assoc()
5049 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) { in sctp_free_assoc()
5105 if (inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) { in sctp_destination_is_reachable()
5185 if (inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) { in sctp_add_local_addr_ep()
5267 if (inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) { in sctp_del_local_addr_ep()
5385 if (((inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) == 0) && in sctp_del_local_addr_restricted()
6618 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_is_vtag_good()
6984 old_flags = inp->sctp_flags; in sctp_pcb_add_flags()
6986 } while (atomic_cmpset_int(&inp->sctp_flags, old_flags, new_flags) == 0); in sctp_pcb_add_flags()