Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

add references to the sctp bug #18

Merged
merged 1 commit into from
Apr 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/networkpolicy/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,14 @@ func (c *Controller) Run(ctx context.Context) error {
go wait.Until(func() { c.syncNFTablesRules(ctx) }, 60*time.Second, ctx.Done())
}

var flags uint32
// https://netfilter.org/projects/libnetfilter_queue/doxygen/html/group__Queue.html
// the kernel will not normalize offload packets,
// i.e. your application will need to be able to handle packets larger than the mtu.
// Normalization is expensive, so this flag should always be set.
var flags uint32
// This also solves a bug with SCTP
// https://github.com/aojea/kube-netpol/issues/8
// https://bugzilla.netfilter.org/show_bug.cgi?id=1742
flags = nfqueue.NfQaCfgFlagGSO
if c.config.FailOpen {
flags += nfqueue.NfQaCfgFlagFailOpen
Expand Down
Loading