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
|
/*
* Quicktun tunnel driver - userspace interface
* Copyright (C) 2011 Matthias Schiffer <mschiffer@universe-factory.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __QUICKTUN_H
#define __QUICKTUN_H
#define QUICKTUN_MODE_ETHERNET 0x0001
#define QUICKTUN_MODE_IP 0x0002
enum {
QUICKTUN_CMD_UNSPEC,
QUICKTUN_CMD_CREATE_DEVICE,
QUICKTUN_CMD_CHANGE_DEVICE,
QUICKTUN_CMD_DELETE_DEVICE,
QUICKTUN_CMD_GET_DEVICE,
__QUICKTUN_CMD_MAX
};
enum {
QUICKTUN_A_UNSPEC,
QUICKTUN_A_TUNNEL_SPEC,
QUICKTUN_A_IFNAME,
QUICKTUN_A_MODE,
QUICKTUN_A_LOCAL_ADDRESS,
QUICKTUN_A_LOCAL_PORT,
QUICKTUN_A_REMOTE_ADDRESS,
QUICKTUN_A_REMOTE_PORT,
QUICKTUN_A_REMOTE_FLOAT,
__QUICKTUN_A_MAX
};
#define QUICKTUN_CMD_MAX (__QUICKTUN_CMD_MAX - 1)
#define QUICKTUN_A_MAX (__QUICKTUN_A_MAX - 1)
#endif /* __QUICKTUN_H */
|