opnsense-src/sys
Andrey V. Elsukov aaef76e1fd Handle delayed checksums if needed in NAT64.
Upper level protocols defer checksums calculation in hope we have
checksums offloading in a network card. CSUM_DELAY_DATA flag is used
to determine that checksum calculation was deferred. And IP output
routine checks for this flag before pass mbuf to lower layer. Forwarded
packets have not this flag.

NAT64 uses checksums adjustment when it translates IP headers.
In most cases NAT64 is used for forwarded packets, but in case when it
handles locally originated packets we need to finish checksum calculation
that was deferred to correctly adjust it.

Add check for presence of CSUM_DELAY_DATA flag and finish checksum
calculation before adjustment.

Reported and tested by:	Evgeniy Khramtsov <evgeniy at khramtsov org>
MFC after:	1 week
2020-08-05 09:16:35 +00:00
..
amd64 Allow swi_sched() to be called from NMI context. 2020-07-25 15:19:38 +00:00
arm allwinner: clk: Fix nm clock calculation 2020-08-05 08:31:26 +00:00
arm64 Add initial driver for ACPI Platform Error Interfaces. 2020-07-27 21:19:41 +00:00
bsm bsm: add AUE_CLOSERANGE 2020-04-24 01:27:25 +00:00
cam Minor cleanups in mmc_xpt.c 2020-08-04 21:58:43 +00:00
cddl zfs: add support for lockless lookup 2020-07-25 10:39:41 +00:00
compat linuxkpi: Add time_after32 and time_before32 2020-08-04 15:27:32 +00:00
conf Add a GPIO driver for the Raspberry Pi firmware GPIOs 2020-08-03 17:18:12 +00:00
contrib Import PCG-C into sys/contrib 2020-07-30 23:54:25 +00:00
crypto padlock: fix Via Padlock with 192-bit keys 2020-07-20 16:12:14 +00:00
ddb [PowerPC] More relocation fixes 2020-06-21 03:39:26 +00:00
dev Appease gcc's -Wparentheses (and -Werror) 2020-08-05 05:58:25 +00:00
dts Remove licenses 2020-06-04 17:20:58 +00:00
fs Add optional support for ext_pgs mbufs to the NFS server's read, readlink 2020-07-31 23:35:49 +00:00
gdb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
geom Fix indentation. 2020-07-27 16:31:21 +00:00
gnu Import DTS files for arm, arm64, riscv from Linux 5.8 2020-08-04 19:44:43 +00:00
i386 Allow swi_sched() to be called from NMI context. 2020-07-25 15:19:38 +00:00
isa sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
kern vfs: tidy up namei entry point 2020-08-05 07:33:39 +00:00
kgssapi Add support for optional separate output buffers to in-kernel crypto. 2020-05-25 22:12:04 +00:00
libkern libkern: Add arc4random_uniform 2020-05-23 17:51:06 +00:00
mips Include virtio support in std.MALTA 2020-07-31 11:28:09 +00:00
modules Add missing dependency for cpsw module. 2020-08-01 09:06:16 +00:00
net Remove free_domain() and uma_zfree_domain(). 2020-08-04 13:58:36 +00:00
net80211 [net80211] Add new privileges; restrict what can be done in a jail. 2020-07-19 15:16:27 +00:00
netgraph ng_iface(4): Remove unsupported protocols. 2020-07-31 14:08:54 +00:00
netinet The recent changes to move the ref count increment 2020-07-31 10:03:32 +00:00
netinet6 Remove an incorrect assertion from in6p_lookup_mcast_ifp(). 2020-08-04 15:00:02 +00:00
netipsec Simplify IPsec transform-specific teardown. 2020-06-25 23:59:16 +00:00
netpfil Handle delayed checksums if needed in NAT64. 2020-08-05 09:16:35 +00:00
netsmb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfs Transition from rtrequest1_fib() to rib_action(). 2020-07-21 19:56:13 +00:00
nfsclient
nfsserver
nlm Fix export_args ex_flags field so that is 64bits, the same as mnt_flags. 2020-06-14 00:10:18 +00:00
ofed Infiniband clients must be attached and detached in a specific order in ibcore. 2020-07-06 08:50:11 +00:00
opencrypto Add support for KTLS RX via software decryption. 2020-07-23 23:48:18 +00:00
powerpc Set si_addr to dar for MMU and alignment faults. 2020-07-27 16:34:31 +00:00
riscv libc: Provide sub fp(s|g)etmask() implementations for RISC-V 2020-08-03 12:48:51 +00:00
rpc Fix up a comment added by r362455. 2020-06-21 02:49:56 +00:00
security vfs: add a cheaper entry for mac_vnode_check_access 2020-08-05 07:34:45 +00:00
sys vfs: prefill nameidata with garbage on debug kernels 2020-08-05 07:28:51 +00:00
teken Adjust teken to allow build as part of loader 2019-09-05 18:07:40 +00:00
tests Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tools makesyscalls.lua: improve syscall ordering validation 2020-08-04 21:49:13 +00:00
ufs ufs: only pass LK_ADAPTIVE if LK_NODDLKTREAT is set 2020-08-04 23:09:15 +00:00
vm Remove most lingering references to the page lock in comments. 2020-08-04 14:59:43 +00:00
x86 Add a few macroses for conversion between DMAR unit, domain, ctx 2020-08-04 20:51:05 +00:00
xdr Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
xen Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (16 of many) 2020-02-25 19:04:39 +00:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00