Initial revision
This commit is contained in:
commit
c5e4c2cfc0
42 changed files with 16139 additions and 0 deletions
18
cluster.h
Normal file
18
cluster.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// L2TPNS Clustering Stuff
|
||||
// $Id: cluster.h,v 1.1 2003-12-16 07:07:39 fred_nerk Exp $
|
||||
|
||||
#define C_HELLO 1
|
||||
#define C_HELLO_RESPONSE 2
|
||||
#define C_PING 3
|
||||
#define C_TUNNEL 4
|
||||
#define C_SESSION 5
|
||||
|
||||
#define CLUSTERPORT 32792
|
||||
#define CLUSTERCLIENTPORT 32793
|
||||
#define UDP 17
|
||||
#define TIMEOUT 20
|
||||
#define IL sizeof(int)
|
||||
|
||||
int cluster_init(uint32_t bind_address, int server);
|
||||
int cluster_send_message(unsigned long ip_address, uint32_t vip, char type, void *data, int datalen);
|
||||
int processcluster(char *buf, int l);
|
||||
Loading…
Add table
Add a link
Reference in a new issue