]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
genet: Fix problem with forwarding some TCP/IPv6 packets
authorMike Karels <karels@FreeBSD.org>
Thu, 18 Mar 2021 00:19:24 +0000 (19:19 -0500)
committerMike Karels <karels@FreeBSD.org>
Thu, 18 Mar 2021 00:25:43 +0000 (19:25 -0500)
commit2bdcf6237744b2d9d9707d623660d33931daeb52
tree50f97fe25b8e85e8099c1600322a817795fef9c6
parenta771bf748f94acd53ce95a397f8b0733d8c5aa3d
genet: Fix problem with forwarding some TCP/IPv6 packets

TCP/IPv6 packets to be forwarded can be laid out with only the Ethernet
header in the first mbuf, and these packets are lost.  There was a
previous hack to pullup ICMPv6 packets with such a layout for the
same reason.  Generalize, and pullup any IPv6 packets with only the
Ethernet header in the first mbuf.  Possibly this should also include
IPv4, but that situation has not been observed to fail.

PR: 254060
Reported by: denis at h3q.com
MFC after: 3 days
sys/arm64/broadcom/genet/if_genet.c