Initial revision
[l2tpns.git] / cluster.h
1 // L2TPNS Clustering Stuff
2 // $Id: cluster.h,v 1.1 2003/12/16 07:07:39 fred_nerk Exp $
3
4 #define C_HELLO 1
5 #define C_HELLO_RESPONSE 2
6 #define C_PING 3
7 #define C_TUNNEL 4
8 #define C_SESSION 5
9
10 #define CLUSTERPORT 32792
11 #define CLUSTERCLIENTPORT 32793
12 #define UDP 17
13 #define TIMEOUT 20
14 #define IL sizeof(int)
15
16 int cluster_init(uint32_t bind_address, int server);
17 int cluster_send_message(unsigned long ip_address, uint32_t vip, char type, void *data, int datalen);
18 int processcluster(char *buf, int l);