Debian Codegraph @

drivers/net/ovpn-dco/ovpn.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* OpenVPN data channel accelerator
3 *
4 * Copyright (C) 2019-2023 OpenVPN, Inc.
5 *
6 * Author: James Yonan <[email protected]>
7 * Antonio Quartulli <[email protected]>
8 */
9
10 #ifndef _NET_OVPN_DCO_OVPN_H_
11 #define _NET_OVPN_DCO_OVPN_H_
12
13 #include "main.h"
14 #include "peer.h"
15 #include "sock.h"
16 #include "ovpnstruct.h"
17
18 #include <linux/workqueue.h>
19 #include <linux/types.h>
20 #include <net/sock.h>
21
22 struct ovpn_struct;
23 struct net_device;
24
25 int ovpn_struct_init(struct net_device *dev);
26
27 u16 ovpn_select_queue(struct net_device *dev, struct sk_buff *skb,
28 struct net_device *sb_dev);
29
30 void ovpn_keepalive_xmit(struct ovpn_peer *peer);
31 void ovpn_explicit_exit_notify_xmit(struct ovpn_peer *peer);
32
33 netdev_tx_t ovpn_net_xmit(struct sk_buff *skb, struct net_device *dev);
34
35 int ovpn_recv(struct ovpn_struct *ovpn, struct ovpn_peer *peer, struct sk_buff *skb);
36
37 void ovpn_encrypt_work(struct work_struct *work);
38 void ovpn_decrypt_work(struct work_struct *work);
39 int ovpn_napi_poll(struct napi_struct *napi, int budget);
40
41 int ovpn_send_data(struct ovpn_struct *ovpn, u32 peer_id, const u8 *data, size_t len);
42
43 #endif /* _NET_OVPN_DCO_OVPN_H_ */