| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#ifndef _NET_OVPN_DCO_OVPNSTRUCT_H_ |
| 11 |
#define _NET_OVPN_DCO_OVPNSTRUCT_H_ |
| 12 |
|
| 13 |
#include "peer.h" |
| 14 |
|
| 15 |
#include <uapi/linux/ovpn_dco.h> |
| 16 |
#include <linux/mutex.h> |
| 17 |
#include <linux/spinlock.h> |
| 18 |
#include <linux/workqueue.h> |
| 19 |
|
| 20 |
|
| 21 |
struct ovpn_struct { |
| 22 |
|
| 23 |
struct net_device *dev; |
| 24 |
|
| 25 |
|
| 26 |
enum ovpn_mode mode; |
| 27 |
|
| 28 |
|
| 29 |
spinlock_t lock; |
| 30 |
|
| 31 |
|
| 32 |
struct mutex napi_lock; |
| 33 |
|
| 34 |
|
| 35 |
struct workqueue_struct *crypto_wq; |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
struct workqueue_struct *events_wq; |
| 40 |
|
| 41 |
|
| 42 |
struct { |
| 43 |
DECLARE_HASHTABLE(by_id, 12); |
| 44 |
DECLARE_HASHTABLE(by_transp_addr, 12); |
| 45 |
DECLARE_HASHTABLE(by_vpn_addr, 12); |
| 46 |
|
| 47 |
spinlock_t lock; |
| 48 |
} peers; |
| 49 |
|
| 50 |
|
| 51 |
struct ovpn_peer __rcu *peer; |
| 52 |
|
| 53 |
unsigned int max_tun_queue_len; |
| 54 |
|
| 55 |
netdev_features_t set_features; |
| 56 |
|
| 57 |
void *security; |
| 58 |
|
| 59 |
u32 registered_nl_portid; |
| 60 |
bool registered_nl_portid_set; |
| 61 |
}; |
| 62 |
|
| 63 |
#endif |