Teonet library
0.4.7
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
vpn.h
Go to the documentation of this file.
1
11
#ifndef VPN_H
12
#define VPN_H
13
14
#include <ev.h>
15
#include <stdio.h>
16
#include <pbl.h>
17
18
22
typedef
struct
ksnVpnClass
{
23
24
int
ksnet_vpn_started
;
25
PblMap *
ksnet_vpn_map
;
26
struct
device
*
ksn_tap_dev
;
27
char
*
tuntap_name
;
28
int
tuntap_fd
;
29
void
*
ke
;
30
ev_io *
tuntap_io
;
31
32
}
ksnVpnClass
;
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
38
//ksnVpnClass
39
void
*
ksnVpnInit
(
void
*
ke
);
40
void
ksnVpnDestroy
(
void
*vpn);
41
42
int
cmd_vpn_cb
(
ksnVpnClass
*kvpn,
char
*from,
void
*
data
,
size_t
data_len);
43
void
ksnVpnListShow
(
ksnVpnClass
*kvpn);
44
45
#ifdef __cplusplus
46
}
47
#endif
48
49
#endif
/* VPN_H */
cmd_vpn_cb
int cmd_vpn_cb(ksnVpnClass *kvpn, char *from, void *data, size_t data_len)
data
const char data[]
Make it with: gcc -o post-callback post-callback.c -lcurl.
Definition:
post-callback.c:23
ksnVpnClass::tuntap_name
char * tuntap_name
TUNTAP Device name.
Definition:
vpn.h:27
ksnVpnDestroy
void ksnVpnDestroy(void *vpn)
ksnVpnClass::ksnet_vpn_started
int ksnet_vpn_started
VPN Started.
Definition:
vpn.h:24
device
Definition:
tuntap.h:132
ksnVpnClass
struct ksnVpnClass ksnVpnClass
File: vpn.h Author: Kirill Scherba.
ksnVpnClass::ke
void * ke
Pointer to Event manager class object.
Definition:
vpn.h:29
ksnVpnInit
void * ksnVpnInit(void *ke)
ksnVpnClass::tuntap_io
ev_io * tuntap_io
Tuntap watcher.
Definition:
vpn.h:30
ke
#define ke
ksnVpnClass::ksnet_vpn_map
PblMap * ksnet_vpn_map
MAC Hash Map.
Definition:
vpn.h:25
ksnVpnClass::ksn_tap_dev
struct device * ksn_tap_dev
TUNTAP Device.
Definition:
vpn.h:26
ksnVpnClass::tuntap_fd
int tuntap_fd
TUNTAP Device FD.
Definition:
vpn.h:28
ksnVpnClass
File: vpn.h Author: Kirill Scherba.
Definition:
vpn.h:22
ksnVpnListShow
void ksnVpnListShow(ksnVpnClass *kvpn)
src
modules
vpn.h
Generated on Tue Apr 13 2021 12:51:55 for Teonet library by
1.8.6