nftables/expr
Rafael Campos Las Heras d27cc52f15
hash: Fix hash seed conditional (#234)
Fix the marshall of the hash seed to be conditional, only if it is
explicitly set, we need to add it to the kernel as stated on the
libnftl and nftables projects.
Refence: https://git.netfilter.org/nftables/tree/src/netlink_linearize.c?id=25e7b99cc450490c38becb03d8bddd0199cfd3f9#n174

Otherwise, having a hash expression similar to this:
```
ip daddr set jhash tcp sport mod 2 seed 0x0 map { 0 : 192.168.0.1, 1 : 192.168.2.2 }
```
end up setting only the first IP and ignoring the second one.

Signed-off-by: Rafael Campos <methril@gmail.com>
2023-08-03 08:14:23 +02:00
..
bitwise.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
bitwise_test.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
byteorder.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
connlimit.go Added dynset exprs support (#173) 2022-07-29 18:32:59 +02:00
counter.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
ct.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
dup.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
dynset.go Added dynset exprs support (#173) 2022-07-29 18:32:59 +02:00
expr.go expr: Add Hash to the expr type 2023-06-14 20:10:15 +02:00
exthdr.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
exthdr_test.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
fib.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
flow_offload.go Flowtables implementation (#201) 2022-11-01 07:48:00 +01:00
hash.go hash: Fix hash seed conditional (#234) 2023-08-03 08:14:23 +02:00
immediate.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
limit.go Added dynset exprs support (#173) 2022-07-29 18:32:59 +02:00
log.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
lookup.go IsDestRegSet unmarshaling fix (#178) 2022-08-30 19:03:33 +02:00
match.go add typed xtables information un/marshalling 2022-05-15 23:12:26 +02:00
match_test.go add typed xtables information un/marshalling 2022-05-15 23:12:26 +02:00
meta_test.go Fix Meta unmarshal when is Source Register (#174) 2022-08-08 17:45:52 +02:00
nat.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
notrack.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
numgen.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
objref.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
payload.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
queue.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
quota.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
range.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
redirect.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
reject.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
rt.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00
socket.go Implement socket expr (#222) 2023-05-06 10:49:33 +02:00
socket_test.go Implement socket expr (#222) 2023-05-06 10:49:33 +02:00
target.go add typed xtables information un/marshalling 2022-05-15 23:12:26 +02:00
target_test.go add typed xtables information un/marshalling 2022-05-15 23:12:26 +02:00
tproxy.go Add address field for expr tproxy (#231) 2023-07-10 08:38:01 +02:00
verdict.go refactor: pass table family when un/marshalling expr 2022-05-15 23:12:26 +02:00