FreeBSD/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
/*
 * Abort is used to teardown a connection typically while sitting in
 * the accept queue.
 */
Abort is used to teardown a connection typically while sitting in
the accept queue.
Abort is used to teardown a connection typically while sitting in the accept queue .
void
sdp_abort(struct socket *so)
{
	struct sdp_sock *ssk;
	ssk = sdp_sk(so);
	SDP_WLOCK(ssk);
	if (!(ssk->flags & SDP_TIMEWAIT) &&
	    !(ssk->flags & SDP_DROPPED))
		sdp_drop(ssk, ECONNABORTED);
	KASSERT(ssk->flags & SDP_DROPPED, ("sdp_abort: %p not dropped 0x%X",
	    ssk, ssk->flags));
	SDP_WUNLOCK(ssk);
}
void sdp_abort ( struct socket * so ) { struct sdp_sock * ssk ; ssk = sdp_sk ( so ) ; SDP_WLOCK ( ssk ) ; if ( ! ( ssk -> flags & SDP_TIMEWAIT ) && ! ( ssk -> flags & SDP_DROPPED ) ) sdp_drop ( ssk , ECONNABORTED ) ; KASSERT ( ssk -> flags & SDP_DROPPED , ( " " , ssk , ssk -> flags ) ) ; SDP_WUNLOCK ( ssk ) ; }
Abort is used to teardown a connection typically while sitting in
 the accept queue.
Abort is used to teardown a connection typically while sitting in the accept queue .
/*
	 * If we have not yet dropped, do it now.
	 */