summaryrefslogtreecommitdiff
path: root/accel-pppd/include/events.h
blob: bafb8765dd8d9b7fe0e474b526d0689d99c80fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __EVENTS_H
#define __EVENTS_H

#include <stdint.h>
#include <netinet/in.h>

#define EV_SES_STARTING     1
#define EV_SES_STARTED      2
#define EV_SES_FINISHING    3
#define EV_SES_FINISHED     4
#define EV_SES_AUTHORIZED   5
#define EV_CTRL_STARTING    6
#define EV_CTRL_STARTED     7
#define EV_CTRL_FINISHED    8
#define EV_SES_PRE_UP       9
#define EV_SES_ACCT_START   10
#define EV_CONFIG_RELOAD		11
#define EV_SES_AUTH_FAILED  12
#define EV_SES_PRE_FINISHED 13
#define EV_SES_POST_STARTED 14
#define EV_IP_CHANGED       100
#define EV_SHAPER           101
#define EV_MPPE_KEYS        102
#define EV_DNS              103
#define EV_WINS             104
#define EV_FORCE_INTERIM_UPDATE 105
#define EV_RADIUS_ACCESS_ACCEPT 200
#define EV_RADIUS_COA           201

struct ap_session;
struct ppp_t;
struct rad_packet_t;
struct ev_radius_t
{
	struct ap_session *ses;
	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 ap_session *ses;
	const char *val;
};

struct ev_dns_t
{
	struct ap_session *ses;
	in_addr_t dns1;
	in_addr_t dns2;
};

struct ev_wins_t
{
	struct ap_session *ses;
	in_addr_t wins1;
	in_addr_t wins2;
};
#endif