-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovpn-dco: include new GSO header file
GSO code has ben moved to its own files, therefore a new header needs to be included accordingly. This patch also provides some compat files so that ovpn-dco can continue to compile also on older kernels. Fixes: #42 Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
- Loading branch information
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
/* OpenVPN data channel accelerator | ||
* | ||
* Copyright (C) 2023 OpenVPN, Inc. | ||
* | ||
* Author: Antonio Quartulli <antonio@openvpn.net> | ||
*/ | ||
|
||
#ifndef _NET_OVPN_COMPAT_NET_GSO_H | ||
#define _NET_OVPN_COMPAT_NET_GSO_H | ||
|
||
#include <linux/version.h> | ||
|
||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 10) | ||
#include_next <net/gso.h> | ||
#else | ||
#include <linux/netdevice.h> | ||
#endif | ||
|
||
#endif /* _NET_OVPN_COMPAT_NET_GSO_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters