Forgot to add a json test case for the recently added ct ip addr in map case.
Fix up rawpayload.t for json, it needs to expect new "th dport" when
listing.
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
"match": {
"left": {
"payload": {
- "base": "th",
- "len": 16,
- "offset": 16
+ "field": "dport",
+ "protocol": "th"
}
},
"op": "==",
}
]
+# ct original ip daddr {1.2.3.4} accept
+[
+ {
+ "match": {
+ "left": {
+ "ct": {
+ "dir": "original",
+ "key": "ip daddr"
+ }
+ },
+ "op": "==",
+ "right": {
+ "set": [
+ "1.2.3.4"
+ ]
+ }
+ }
+ },
+ {
+ "accept": null
+ }
+]
+