Included bogon crashes, after fix:
empty_geneve_definition_crash:2:9-16: Error: Could not process rule: Invalid argument
Since this feature is undocumented (hint, hint) I don't know
if there are cases where ip daddr can be elided.
If not, a followup patch should reject empty dst upfront
so users get a more verbose error message.
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de>
obj->tunnel.dst->dtype->size);
if (expr_evaluate(ctx, &obj->tunnel.dst) < 0)
return -1;
- }
- if (obj->tunnel.src->dtype != obj->tunnel.dst->dtype)
- return __stmt_binary_error(ctx, &obj->location, NULL,
- "specify either ip or ip6 for address");
+ if (obj->tunnel.src &&
+ obj->tunnel.src->dtype != obj->tunnel.dst->dtype)
+ return __stmt_binary_error(ctx, &obj->location, NULL,
+ "specify either ip or ip6 for address");
+ }
return 0;
}
--- /dev/null
+table netdev x {
+ tunnel geneve-t {
+ }
+}