Compare commits

..

No commits in common. "8f2d395e1089dea4966c483fbeae7e336917c095" and "45645ffbf5ba9f5395ab04c3d003ef51215d8a90" have entirely different histories.

2 changed files with 0 additions and 6 deletions

View File

@ -134,8 +134,6 @@ func exprsFromBytes(fam byte, ad *netlink.AttributeDecoder, b []byte) ([]Any, er
e = &Reject{} e = &Reject{}
case "masq": case "masq":
e = &Masq{} e = &Masq{}
case "hash":
e = &Hash{}
} }
if e == nil { if e == nil {
// TODO: introduce an opaque expression type so that users know // TODO: introduce an opaque expression type so that users know

4
set.go
View File

@ -719,8 +719,6 @@ func setsFromMsg(msg netlink.Message) (*Set, error) {
return nil, fmt.Errorf("could not determine data type: %w", err) return nil, fmt.Errorf("could not determine data type: %w", err)
} }
set.KeyType = dt set.KeyType = dt
case unix.NFTA_SET_KEY_LEN:
set.KeyType.Bytes = binary.BigEndian.Uint32(ad.Bytes())
case unix.NFTA_SET_DATA_TYPE: case unix.NFTA_SET_DATA_TYPE:
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
@ -733,8 +731,6 @@ func setsFromMsg(msg netlink.Message) (*Set, error) {
return nil, fmt.Errorf("could not determine data type: %w", err) return nil, fmt.Errorf("could not determine data type: %w", err)
} }
set.DataType = dt set.DataType = dt
case unix.NFTA_SET_DATA_LEN:
set.DataType.Bytes = binary.BigEndian.Uint32(ad.Bytes())
} }
} }
return &set, nil return &set, nil