diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/netdev/geneve.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/netdev/geneve.c b/src/network/netdev/geneve.c index fee596e582..1b1cd2fc9e 100644 --- a/src/network/netdev/geneve.c +++ b/src/network/netdev/geneve.c @@ -278,10 +278,10 @@ static int netdev_geneve_verify(NetDev *netdev, const char *filename) { assert(v); assert(filename); - if (v->ttl == 0) { - log_warning("Invalid Geneve TTL value '0' configured in '%s'. Ignoring", filename); - return -EINVAL; - } + if (v->id > GENEVE_VID_MAX) + return log_netdev_warning_errno(netdev, SYNTHETIC_ERRNO(EINVAL), + "%s: Geneve without valid VNI (or Virtual Network Identifier) configured. Ignoring.", + filename); return 0; } |