common-fun.h 1003 Bytes
Newer Older
1 2 3 4
/*
 * FIXME: header
 */

5
#include <pptp/pptp.h>
6 7 8 9 10 11 12 13 14

/* Contains all functions common to more than one state */

void st_com_execute_slave(struct pp_instance *ppi);

void st_com_restart_annrec_timer(struct pp_instance *ppi);

int st_com_check_record_update(struct pp_instance *ppi);

15
/*
16 17
void st_com_add_foreign(unsigned char *buf, MsgHeader *header,
			struct pp_instance *ppi);
18
*/
19

20 21
int st_com_slave_handle_announce(struct pp_instance *ppi, unsigned char *buf,
				 int len);
22

23 24
int st_com_master_handle_announce(struct pp_instance *ppi, unsigned char *buf,
				  int len);
25

26 27
int st_com_slave_handle_sync(struct pp_instance *ppi, unsigned char *buf,
			     int len, TimeInternal *time);
28

29 30
int st_com_master_handle_sync(struct pp_instance *ppi, unsigned char *buf,
			      int len, TimeInternal *time);
31

32 33
int st_com_slave_handle_followup(struct pp_instance *ppi, unsigned char *buf,
				 int len);
34

35 36
int st_com_handle_pdelay_req(struct pp_instance *ppi, unsigned char *buf,
			     int len, TimeInternal *time);