forked from mohnkhan/xavl2tp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipv6aaa.h
executable file
·46 lines (39 loc) · 1.01 KB
/
ipv6aaa.h
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
/*
* Layer Two Tunnelling Protocol Daemon
* Copyright (C) 1998 Adtran, Inc.
* Copyright (C) 2002 Jeff McAdams
*
* Mark Spencer
*
* This software is distributed under the terms
* of the GPL, which you should have received
* along with this source.
*
* Authorization, Accounting, and Access control
*
*/
#ifndef _IPV6AAA_H
#define _IPV6AAA_H
#include "md5.h"
#define ADDR_HASH_SIZE 256
#define MD_SIG_SIZE 16
#define MAX_VECTOR_SIZE 1024
#define VECTOR_SIZE 16
#define STATE_NONE 0
#define STATE_CHALLENGED 1
#define STATE_COMPLETE 2
struct addr_ent6 //TODO: change it for IPv6
{
uint8_t addr[16];
struct addr_ent *next;
};
//RY: start
extern struct lns6 *get_lns6 (struct tunnel6 *);
extern unsigned int get_addr6 (struct iprange6 *);
extern void reserve_addr6 (unsigned int);
extern void unreserve_addr6 (unsigned int);
//RY: end
extern void init_addr ();
extern int handle_challenge6 (struct tunnel6 *, struct challenge *);
//extern void mk_challenge (unsigned char *, int);//RY: use original
#endif