Use multiple radius sockets to allow more concurrent authentication requests
[l2tpns.git] / cluster.h
1 // L2TPNS Clustering Stuff
2 // $Id: cluster.h,v 1.2 2004/03/05 00:09:03 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 #define C_GOODBYE 6
10
11 #define CLUSTERPORT 32792
12 #define CLUSTERCLIENTPORT 32793
13 #define UDP 17
14 #define TIMEOUT 20
15 #define IL sizeof(int)
16
17 int cluster_init(uint32_t bind_address, int server);
18 int cluster_send_message(unsigned long ip_address, uint32_t vip, char type, void *data, int datalen);
19 int processcluster(char *buf, int l);