FreeBSD/sys/netgraph/ng_mppc.c
/*
 * The peer has sent us a CCP ResetRequest, so reset our transmit state.
 */
The peer has sent us a CCP ResetRequest, so reset our transmit state.
The peer has sent us a CCP ResetRequest so reset our transmit state .
static void
ng_mppc_reset_req(node_p node)
{   
	const priv_p priv = NG_NODE_PRIVATE(node);
	struct ng_mppc_dir *const d = &priv->xmit;
#ifdef NETGRAPH_MPPC_COMPRESSION
	if (d->history != NULL)
		MPPC_InitCompressionHistory(d->history);
#endif
#ifdef NETGRAPH_MPPC_ENCRYPTION
	if ((d->cfg.bits & MPPE_STATELESS) == 0)
		rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
#endif
	d->flushed = 1;
}
static void ng_mppc_reset_req ( node_p node ) { const priv_p priv = NG_NODE_PRIVATE ( node ) ; struct ng_mppc_dir * const d = & priv -> xmit ; #ifdef NETGRAPH_MPPC_COMPRESSION if ( d -> history != NULL ) MPPC_InitCompressionHistory ( d -> history ) ; #endif #ifdef NETGRAPH_MPPC_ENCRYPTION if ( ( d -> cfg . bits & MPPE_STATELESS ) == 0 ) rc4_init ( & d -> rc4 , d -> key , KEYLEN ( d -> cfg . bits ) ) ; #endif d -> flushed = 1 ; }
The peer has sent us a CCP ResetRequest, so reset our transmit state.
The peer has sent us a CCP ResetRequest so reset our transmit state .