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

/*
 * 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;
}