state-faulty.c 386 Bytes
Newer Older
1 2 3
/*
 * FIXME: header
 */
4 5
#include <pptp/pptp.h>
#include <pptp/diag.h>
6 7 8 9 10 11 12 13 14

/*
 * Fault troubleshooting. Now only prints an error messages and comes back to
 * PTP_INITIALIZING state
 */

int pp_faulty(struct pp_instance *ppi, unsigned char *pkt, int plen)
{
	pp_printf("event FAULT_CLEARED\n");
15
	ppi->next_state = PPS_INITIALIZING;
16
	ppi->next_delay = PP_DEFAULT_NEXT_DELAY_MS;
17 18
	return 0;
}