1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* OpenVPN data channel offload 3 * 4 * Copyright (C) 2019-2025 OpenVPN, Inc. 5 * 6 * Author: Antonio Quartulli <antonio@openvpn.net> 7 */ 8 9 #ifndef _NET_OVPN_UDP_H_ 10 #define _NET_OVPN_UDP_H_ 11 12 #include <net/sock.h> 13 14 struct ovpn_peer; 15 struct ovpn_priv; 16 struct socket; 17 18 int ovpn_udp_socket_attach(struct ovpn_socket *ovpn_sock, struct socket *sock, 19 struct ovpn_priv *ovpn); 20 void ovpn_udp_socket_detach(struct ovpn_socket *ovpn_sock); 21 22 void ovpn_udp_send_skb(struct ovpn_peer *peer, struct sock *sk, 23 struct sk_buff *skb); 24 25 #endif /* _NET_OVPN_UDP_H_ */ 26