mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 14:13:39 +00:00

With this change ovpn is allowed to communicate to peers also via TCP. Parsing of incoming messages is implemented through the strparser API. Note that ovpn redefines sk_prot and sk_socket->ops for the TCP socket used to communicate with the peer. For this reason it needs to access inet6_stream_ops, which is declared as extern in the IPv6 module, but it is not fully exported. Therefore this patch is also adding EXPORT_SYMBOL_GPL(inet6_stream_ops) to net/ipv6/af_inet6.c. Cc: David Ahern <dsahern@kernel.org> Cc: Eric Dumazet <edumazet@google.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Simon Horman <horms@kernel.org> Signed-off-by: Antonio Quartulli <antonio@openvpn.net> Link: https://patch.msgid.link/20250415-b4-ovpn-v26-11-577f6097b964@openvpn.net Reviewed-by: Sabrina Dubroca <sd@queasysnail.net> Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
23 lines
456 B
Makefile
23 lines
456 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# ovpn -- OpenVPN data channel offload in kernel space
|
|
#
|
|
# Copyright (C) 2020-2025 OpenVPN, Inc.
|
|
#
|
|
# Author: Antonio Quartulli <antonio@openvpn.net>
|
|
|
|
obj-$(CONFIG_OVPN) := ovpn.o
|
|
ovpn-y += bind.o
|
|
ovpn-y += crypto.o
|
|
ovpn-y += crypto_aead.o
|
|
ovpn-y += main.o
|
|
ovpn-y += io.o
|
|
ovpn-y += netlink.o
|
|
ovpn-y += netlink-gen.o
|
|
ovpn-y += peer.o
|
|
ovpn-y += pktid.o
|
|
ovpn-y += socket.o
|
|
ovpn-y += stats.o
|
|
ovpn-y += tcp.o
|
|
ovpn-y += udp.o
|