This commit is contained in:
Mikhail Sennikovsky 2024-12-20 19:33:55 +08:00 committed by GitHub
commit 0d0cf9d2ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

2
set.go
View File

@ -748,7 +748,7 @@ func setsFromMsg(msg netlink.Message) (*Set, error) {
nftMagic := ad.Uint32() nftMagic := ad.Uint32()
// Special case for the data type verdict, in the message it is stored as 0xffffff00 but it is defined as 1 // Special case for the data type verdict, in the message it is stored as 0xffffff00 but it is defined as 1
if nftMagic == 0xffffff00 { if nftMagic == 0xffffff00 {
set.KeyType = TypeVerdict set.DataType = TypeVerdict
break break
} }
dt, err := parseSetDatatype(nftMagic) dt, err := parseSetDatatype(nftMagic)