netfilter: nfnetlink_queue: unbreak SCTP traffic
authorAntonio Ojea <aojea@google.com>
Thu, 27 Jun 2024 11:27:10 +0000 (13:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 19 Aug 2024 16:44:50 +0000 (18:44 +0200)
commit26a77d02891ab62172085a4f94af9b3c90aed387
tree71cfce9c45789c72eb15af4238c5639cb2394d42
parent1bf8e07c382bd4f04ede81ecc05267a8ffd60999
netfilter: nfnetlink_queue: unbreak SCTP traffic

when packet is enqueued with nfqueue and GSO is enabled, checksum
calculation has to take into account the protocol, as SCTP uses a
32 bits CRC checksum.

Enter skb_gso_segment() path in case of SCTP GSO packets because
skb_zerocopy() does not support for GSO_BY_FRAGS.

Joint work with Pablo.

Signed-off-by: Antonio Ojea <aojea@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/core/dev.c
net/netfilter/nfnetlink_queue.c