From: Zbigniew Jędrzejewski-Szmek Date: Thu, 23 Aug 2018 09:43:28 +0000 (+0200) Subject: network: adjust some error messages X-Git-Tag: v240~801^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3bb989b6f6fba404f7652bb0f575b896e6c0127;p=thirdparty%2Fsystemd.git network: adjust some error messages The option is now called simply "Encapsulation=". Also, "ignoring" is rather misleading, because we use to to mean that some line is being ignored. Here the whole tunnel is dropped. --- diff --git a/src/network/netdev/fou-tunnel.c b/src/network/netdev/fou-tunnel.c index 6ec04c2f0f3..ef762d6ab39 100644 --- a/src/network/netdev/fou-tunnel.c +++ b/src/network/netdev/fou-tunnel.c @@ -21,7 +21,8 @@ static const char* const fou_encap_type_table[_NETDEV_FOO_OVER_UDP_ENCAP_MAX] = }; DEFINE_STRING_TABLE_LOOKUP(fou_encap_type, FooOverUDPEncapType); -DEFINE_CONFIG_PARSE_ENUM(config_parse_fou_encap_type, fou_encap_type, FooOverUDPEncapType, "Failed to parse Foo Over UDP Encap type"); +DEFINE_CONFIG_PARSE_ENUM(config_parse_fou_encap_type, fou_encap_type, FooOverUDPEncapType, + "Failed to parse Encapsulation="); static int netdev_fill_fou_tunnel_message(NetDev *netdev, sd_netlink_message **ret) { _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; @@ -94,12 +95,12 @@ static int netdev_fou_tunnel_verify(NetDev *netdev, const char *filename) { assert(t); if (t->fou_encap_type == NETDEV_FOO_OVER_UDP_ENCAP_DIRECT && t->fou_protocol <= 0) { - log_netdev_error(netdev, "FooOverUDP missing protocol configured in %s. Ignoring", filename); + log_netdev_error(netdev, "FooOverUDP protocol not configured in %s. Rejecting configuration.", filename); return -EINVAL; } if (t->fou_encap_type == NETDEV_FOO_OVER_UDP_ENCAP_GUE && t->fou_protocol > 0) { - log_netdev_error(netdev, "FooOverUDP GUE can't be set with protocol configured in %s. Ignoring", filename); + log_netdev_error(netdev, "FooOverUDP GUE can't be set with protocol configured in %s. Rejecting configuration.", filename); return -EINVAL; }