summaryrefslogtreecommitdiff
path: root/accel-pppd/include/events.h
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2011-01-05 15:18:59 +0300
committerDmitry Kozlov <xeb@mail.ru>2011-01-05 15:18:59 +0300
commitf28cb1b0a926f1ea98700b7871537ad1793511fd (patch)
treebaf35570bc6b38b6fab5b6524e8f19f58f71e57f /accel-pppd/include/events.h
parent2fdf3586c13a72c36f9530084962e29d57dc0329 (diff)
downloadaccel-ppp-f28cb1b0a926f1ea98700b7871537ad1793511fd.tar.gz
accel-ppp-f28cb1b0a926f1ea98700b7871537ad1793511fd.zip
rename accel-pptp to accel-ppp
Diffstat (limited to 'accel-pppd/include/events.h')
-rw-r--r--accel-pppd/include/events.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/accel-pppd/include/events.h b/accel-pppd/include/events.h
new file mode 100644
index 0000000..6a8caf0
--- /dev/null
+++ b/accel-pppd/include/events.h
@@ -0,0 +1,49 @@
+#ifndef __EVENTS_H
+#define __EVENTS_H
+
+#include <stdint.h>
+
+#define EV_PPP_STARTING 1
+#define EV_PPP_STARTED 2
+#define EV_PPP_FINISHING 3
+#define EV_PPP_FINISHED 4
+#define EV_PPP_AUTHORIZED 5
+#define EV_CTRL_STARTING 6
+#define EV_CTRL_STARTED 7
+#define EV_CTRL_FINISHED 8
+#define EV_PPP_PRE_UP 9
+#define EV_PPP_ACCT_START 10
+#define EV_CONFIG_RELOAD 11
+#define EV_IP_CHANGED 100
+#define EV_SHAPER 101
+#define EV_MPPE_KEYS 102
+#define EV_RADIUS_ACCESS_ACCEPT 200
+#define EV_RADIUS_COA 201
+
+struct ppp_t;
+struct rad_packet_t;
+struct ev_radius_t
+{
+ struct ppp_t *ppp;
+ struct rad_packet_t *request;
+ struct rad_packet_t *reply;
+ int res;
+};
+
+struct ev_mppe_keys_t
+{
+ struct ppp_t *ppp;
+ uint8_t *recv_key;
+ uint8_t *send_key;
+ int policy;
+ int type;
+};
+
+struct ev_shaper_t
+{
+ struct ppp_t *ppp;
+ const char *val;
+};
+
+#endif
+