sys/netproto/atm/ipatm/ipatm_input.c
void
ipatm_cpcs_data(void *tok, KBuffer *m)
{
	struct ipvcc	*ivp = tok;

#ifdef DIAGNOSTIC
	if (ipatm_print) {
		atm_pdu_print(m, "ipatm_input");
	}
#endif

	/*
	 * Handle input packet
	 */
	if (ivp->iv_state != IPVCC_ACTIVE) {
		KB_FREEALL(m);
		ipatm_stat.ias_rcvstate++;
		return;
	}

	/*
	 * IP packet - reset idle timer
	 */
	ivp->iv_idle = 0;

	/*
	 * Pass packet to IP
	 */
	ipatm_ipinput(ivp->iv_ipnif, m);
}
/*
 * Process VCC Input Data
 * 
 * Arguments:
 *	tok	ipatm connection token (pointer to ipvcc)
 *	m	pointer to input packet buffer chain
 *
 * Returns:
 *	none
 *
 */
Process VCC Input Data

tok     ipatm connection token (pointer to ipvcc)
m       pointer to input packet buffer chain

none
Process VCC Input Data tok ipatm connection token ( pointer to ipvcc ) m pointer to input packet buffer chain none
void
ipatm_cpcs_data(void *tok, KBuffer *m)
{
	struct ipvcc	*ivp = tok;
#ifdef DIAGNOSTIC
	if (ipatm_print) {
		atm_pdu_print(m, "ipatm_input");
	}
#endif
	if (ivp->iv_state != IPVCC_ACTIVE) {
		KB_FREEALL(m);
		ipatm_stat.ias_rcvstate++;
		return;
	}
	ivp->iv_idle = 0;
	ipatm_ipinput(ivp->iv_ipnif, m);
}
void ipatm_cpcs_data ( void * tok , KBuffer * m ) { struct ipvcc * ivp = tok ; #ifdef DIAGNOSTIC if ( ipatm_print ) { atm_pdu_print ( m , " " ) ; } #endif if ( ivp -> iv_state != IPVCC_ACTIVE ) { KB_FREEALL ( m ) ; ipatm_stat . ias_rcvstate ++ ; return ; } ivp -> iv_idle = 0 ; ipatm_ipinput ( ivp -> iv_ipnif , m ) ; }
Process VCC Input Data
Process VCC Input Data
/*
	 * Handle input packet
	 */ /*
	 * IP packet - reset idle timer
	 */ /*
	 * Pass packet to IP
	 */