sys/netccitt/llc_subr.c
/*
 * RESET_CHECK --- The local connection component is waiting for the local user
 *                 to accept or refuse a remote reset request.
 */
The local connection component is waiting for the local user
to accept or refuse a remote reset request.
The local connection component is waiting for the local user to accept or refuse a remote reset request .
int
llc_state_RESET_CHECK(struct llc_linkcb *linkp, struct llc *frame, int frame_kind,
		      int cmdrsp, int pollfinal)
{
	int action = 0;
	switch(frame_kind + cmdrsp) {
	case NL_RESET_RESPONSE:
		llc_send(linkp, LLCFT_UA, LLC_RSP, LLC_GETFLAG(linkp, F));
		LLC_RESETCOUNTER(linkp);
		LLC_SETFLAG(linkp, P, 0);
		LLC_SETFLAG(linkp, REMOTE_BUSY, 0);
		LLC_NEWSTATE(linkp, NORMAL);
		break;
	case NL_DISCONNECT_REQUEST:
		llc_send(linkp, LLCFT_DM, LLC_RSP, LLC_GETFLAG(linkp, F));
		LLC_NEWSTATE(linkp, ADM);
		break;
	case LLCFT_DM + LLC_RSP:
		action = LLC_DISCONNECT_INDICATION;
		break;
	case LLCFT_SABME + LLC_CMD:
		LLC_SETFLAG(linkp, F, pollfinal);
		break;
	case LLCFT_DISC + LLC_CMD:
		llc_send(linkp, LLCFT_DM, LLC_RSP, pollfinal);
		LLC_NEWSTATE(linkp, ADM);
		action = LLC_DISCONNECT_INDICATION;
		break;
	}
	return action;
}
int llc_state_RESET_CHECK ( struct llc_linkcb * linkp , struct llc * frame , int frame_kind , int cmdrsp , int pollfinal ) { int action = 0 ; switch ( frame_kind + cmdrsp ) { case NL_RESET_RESPONSE : llc_send ( linkp , LLCFT_UA , LLC_RSP , LLC_GETFLAG ( linkp , F ) ) ; LLC_RESETCOUNTER ( linkp ) ; LLC_SETFLAG ( linkp , P , 0 ) ; LLC_SETFLAG ( linkp , REMOTE_BUSY , 0 ) ; LLC_NEWSTATE ( linkp , NORMAL ) ; break ; case NL_DISCONNECT_REQUEST : llc_send ( linkp , LLCFT_DM , LLC_RSP , LLC_GETFLAG ( linkp , F ) ) ; LLC_NEWSTATE ( linkp , ADM ) ; break ; case LLCFT_DM + LLC_RSP : action = LLC_DISCONNECT_INDICATION ; break ; case LLCFT_SABME + LLC_CMD : LLC_SETFLAG ( linkp , F , pollfinal ) ; break ; case LLCFT_DISC + LLC_CMD : llc_send ( linkp , LLCFT_DM , LLC_RSP , pollfinal ) ; LLC_NEWSTATE ( linkp , ADM ) ; action = LLC_DISCONNECT_INDICATION ; break ; } return action ; }
RESET_CHECK --- The local connection component is waiting for the local user
                 to accept or refuse a remote reset request.
RESET_CHECK --- The local connection component is waiting for the local user to accept or refuse a remote reset request .