Skip to content

Commit

Permalink
nflog.go: fix broken qthresh
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk4815 authored and florianl committed Jan 13, 2024
1 parent 85f5683 commit 62e3584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nflog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 62e3584

Please sign in to comment.