From 62e358425bf8d1c03b9e1bd9025e2a6b73b5e47f Mon Sep 17 00:00:00 2001 From: patryk4815 Date: Sat, 13 Jan 2024 13:28:29 +0100 Subject: [PATCH] nflog.go: fix broken qthresh --- nflog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nflog.go b/nflog.go index e8a6d7e..765cba2 100644 --- a/nflog.go +++ b/nflog.go @@ -195,9 +195,9 @@ func (nflog *Nflog) RegisterWithErrorFunc(ctx context.Context, fn HookFunc, errf attrs = append(attrs, netlink.Attribute{Type: nfUlACfgTimeOut, Data: nflog.timeout}) } - if nflog.qthresh[0] != 0 || nflog.qthresh[1] != 1 || nflog.qthresh[2] != 0 || nflog.qthresh[3] != 0 { + if nflog.qthresh[0] != 0 || nflog.qthresh[1] != 0 || nflog.qthresh[2] != 0 || nflog.qthresh[3] != 0 { // set qthresh - attrs = append(attrs, netlink.Attribute{Type: nfUlACfgQThresh, Data: nflog.timeout}) + attrs = append(attrs, netlink.Attribute{Type: nfUlACfgQThresh, Data: nflog.qthresh}) } if len(attrs) != 0 {