clean up plugins
[l2tpns.git] / control.h
1 #ifndef __CONTROL_H__
2 #define __CONTROL_H__
3
4 #define PKT_RESP_OK 1
5 #define PKT_RESP_ERROR 2
6
7 #define PKT_LOAD_PLUGIN 5
8 #define PKT_UNLOAD_PLUGIN 6
9
10 #define PKT_GARDEN 1000
11 #define PKT_UNGARDEN 1001
12
13 int new_packet(short type, char *packet);
14 int send_packet(int sockfd, int dest_ip, int dest_port, char *packet, int len);
15 void dump_packet(char *packet, FILE *stream);
16 int read_packet(int sockfd, char *packet);
17
18 #endif /* __CONTROL_H__ */