state-faulty.c 392 Bytes
Newer Older
1 2 3 4
/*
 * FIXME: header
 */
#include <pproto/pproto.h>
5
#include <pproto/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;
}