freebsd-dev/sys
Kristof Provost 995cba5a0c netinet: allow UDP tunnels to be removed
udp_set_kernel_tunneling() rejects new callbacks if one is already set.
Allow callbacks to be cleared. The use case for this is OpenVPN DCO,
where the socket is opened by userspace and then adopted by the kernel
to run the tunnel. If the DCO interface is removed but userspace does
not close the socket (something the kernel cannot prevent) the installed
callbacks could be called with an invalidated context.

Allow new functions to be set, but only if they're NULL (i.e. allow the
callback functions to be cleared).

Reviewed by:	tuexen
MFC after:	3 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D34288
2022-02-16 10:59:04 +01:00
..
amd64 proc: load/store p_cowgen using atomic primitives 2022-02-13 13:07:08 +00:00
arm aw_mmc: add crash dumping support in MMCCAM mode 2022-02-16 09:58:08 +02:00
arm64 aarch64: Add static asssert for context size 2022-02-10 14:32:20 -07:00
bsm
cam Fix non-printable characters in NVMe model and serial numbers. 2022-02-09 17:09:25 -05:00
cddl Teach DTrace about BTI on arm64 2022-01-19 12:07:35 +00:00
compat LinuxKPI: pci.h add more defines 2022-02-16 09:47:14 +00:00
conf Disable -Wreturn-type on GCC. 2022-02-14 11:48:47 -08:00
contrib xen: import Xen 4.16 public headers in sys/contrib/ 2022-02-07 10:11:56 +01:00
crypto armv8crypto: Use cursors to access crypto buffer data 2022-02-15 21:50:41 -05:00
ddb ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
dev iscsi: Use calloutng instead of ticks in iscsi initiator 2022-02-15 17:36:22 +01:00
dts dts: add IPQ4018/IPQ4019 ethernet MAC and ethernet switch definitions 2022-02-03 21:26:45 -08:00
fs msdosfs: Fix mounting when the device sector size is >512B 2022-02-14 10:06:47 -05:00
gdb gdb(4): Do not use run length encoding for 3-symbol repetitions 2022-01-22 14:46:06 -05:00
geom In GEOM debugging output, show consumer for cloned and duplicated bio's. 2022-01-30 17:21:13 -08:00
gnu
i386 proc: load/store p_cowgen using atomic primitives 2022-02-13 13:07:08 +00:00
isa sys/isa: Use C99 fixed-width integer types. 2021-12-28 09:41:57 -08:00
kern fd: add fde_copy 2022-02-15 17:51:08 +00:00
kgssapi
libkern sys/libkern: Use C99 fixed-width integer types. 2021-12-28 09:42:11 -08:00
modules Disable clang 14 warning about bitwise operators in zstd 2022-02-08 21:46:08 +01:00
net if_epair: Use ANSI C definition 2022-02-15 21:45:22 +08:00
net80211 net80211: enhance (disabled) debugging 2022-02-14 22:16:59 +00:00
netgraph ng pppoe(4): Add the required NET_EPOCH section to the hook 2022-02-09 22:00:50 +03:00
netinet netinet: allow UDP tunnels to be removed 2022-02-16 10:59:04 +01:00
netinet6 Fix a memory leak when ip_output_send() returns EAGAIN due to send tag issues 2022-01-27 10:34:34 -05:00
netipsec IPsec: Use protocol-specific malloc types instead of M_XDATA. 2022-01-24 15:27:39 -08:00
netpfil pf: fix set_prio after nv conversion 2022-02-14 22:51:10 +01:00
netsmb
nfs nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00
nfsclient
nfsserver
nlm sys/nlm: Use C99 fixed-width integer types. 2021-12-28 09:42:42 -08:00
ofed mlx5ib: Add support for parsing udata in mlx5_ib_create_flow(). 2022-02-10 11:17:42 +01:00
opencrypto crypto: hide crypto_destroyreq behind a tunable 2022-02-16 07:45:12 +00:00
powerpc proc: load/store p_cowgen using atomic primitives 2022-02-13 13:07:08 +00:00
riscv riscv: Add static asssert for context size 2022-02-10 14:32:21 -07:00
rpc sys/rpc: Use C99 fixed-width integer types. 2021-12-28 09:43:15 -08:00
security Thread creation privilege for realtime group 2021-12-15 00:01:58 +02:00
sys fd: add fde_copy 2022-02-15 17:51:08 +00:00
teken
tests
tools Revert "syscallarg_t: Add a type for system call arguments" 2022-01-12 23:29:20 +00:00
ufs ffs_read(): lock buffers after snaplk with LK_NOWITNESS 2022-02-06 03:26:22 +02:00
vm uma: Add UMA_ZONE_UNMANAGED 2022-02-15 09:25:34 -05:00
x86 xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
xdr sys/xdr: Use C99 fixed-width integer types. 2021-12-28 09:43:26 -08:00
xen xen: remove public headers in sys/xen/interface 2022-02-07 10:12:34 +01:00
Makefile Fix 'make cscope' with ALL_ARCH defined 2022-01-07 11:53:52 -04:00