| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* OpenVPN data channel accelerator |
| 3 | * |
| 4 | * Copyright (C) 2020- OpenVPN, Inc. |
| 5 | * |
| 6 | * Author: Antonio Quartulli <[email protected]> |
| 7 | */ |
| 8 | |
| 9 | #ifndef _NET_OVPN_DCO_NETLINK_H_ |
| 10 | #define _NET_OVPN_DCO_NETLINK_H_ |
| 11 | |
| 12 | struct ovpn_struct; |
| 13 | struct ovpn_peer; |
| 14 | |
| 15 | int ovpn_netlink_init(struct ovpn_struct *ovpn); |
| 16 | int ovpn_netlink_register(void); |
| 17 | void ovpn_netlink_unregister(void); |
| 18 | int ovpn_netlink_send_packet(struct ovpn_struct *ovpn, const struct ovpn_peer *peer, |
| 19 | const u8 *buf, size_t len); |
| 20 | int ovpn_netlink_notify_del_peer(struct ovpn_peer *peer); |
| 21 | |
| 22 | #endif /* _NET_OVPN_DCO_NETLINK_H_ */ |