| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#ifndef _NET_OVPN_DCO_MAIN_H_ |
| 11 |
#define _NET_OVPN_DCO_MAIN_H_ |
| 12 |
|
| 13 |
#include <linux/ip.h> |
| 14 |
#include <linux/ipv6.h> |
| 15 |
#include <linux/printk.h> |
| 16 |
#include <linux/udp.h> |
| 17 |
|
| 18 |
#ifndef OVPN_DCO_VERSION |
| 19 |
#define OVPN_DCO_VERSION "2.0.0" |
| 20 |
#endif |
| 21 |
|
| 22 |
struct net_device; |
| 23 |
bool ovpn_dev_is_valid(const struct net_device *dev); |
| 24 |
|
| 25 |
#define SKB_HEADER_LEN \ |
| 26 |
(max(sizeof(struct iphdr), sizeof(struct ipv6hdr)) + \ |
| 27 |
sizeof(struct udphdr) + NET_SKB_PAD) |
| 28 |
|
| 29 |
#define OVPN_HEAD_ROOM ALIGN(16 + SKB_HEADER_LEN, 4) |
| 30 |
#define OVPN_MAX_PADDING 16 |
| 31 |
#define OVPN_QUEUE_LEN 1024 |
| 32 |
#define OVPN_MAX_TUN_QUEUE_LEN 0x10000 |
| 33 |
|
| 34 |
#endif |