Included bogon will cause a crash but this is the evaluation stage where
we can just emit an error instead.
Signed-off-by: Florian Westphal <fw@strlen.de>
return -1;
break;
default:
- BUG("invalid basetype %s\n", expr_basetype(*expr)->name);
+ return expr_error(ctx->msgs, *expr, "Unexpected datatype %s",
+ (*expr)->dtype->name);
}
return 0;
}
--- /dev/null
+table ip t {
+ map m {
+ type ipv4_addr . inet_service : ipv4_addr . verdict
+ elements = { 10.0.0.1 . 42 : 10.1.1.1 . 0 }
+ }
+
+ chain c {
+ type nat hook prerouting priority dstnat; policy accept;
+ dnat ip to ip saddr . tcp dport map @m
+ }
+}