diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-06-20 19:45:45 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-06-20 22:05:43 -0400 |
commit | 81577dc22887debaf9b19bf1034a2887fb9069c7 (patch) | |
tree | 696ec5ebfcee52a1257dd9a1f1d1054b08779ecb /src/network | |
parent | 747cf8cdf61cdad068c727e42eac699f2505ae77 (diff) |
missing.h: add various network enums
We used to check if e.g. IFLA_BOND_MAX is defined and provide fallback
values in missing.h is it wasn't. But over time, various kernel
versions added IFLA_* defines, so checking for IFLA_BOND_MAX is not
enough if the kernel is new enough to have some of them but too old to
have all. In case we detect that the latest known enum value is
missing, #define most of them.
https://bugs.freedesktop.org/show_bug.cgi?id=80095
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-tunnel.c | 1 | ||||
-rw-r--r-- | src/network/networkd-vxlan.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-tunnel.c b/src/network/networkd-tunnel.c index 202c089c43..88146fe628 100644 --- a/src/network/networkd-tunnel.c +++ b/src/network/networkd-tunnel.c @@ -29,6 +29,7 @@ #include "networkd.h" #include "network-internal.h" #include "util.h" +#include "missing.h" static int netdev_fill_ipip_rtnl_message(Link *link, sd_rtnl_message *m) { diff --git a/src/network/networkd-vxlan.c b/src/network/networkd-vxlan.c index d6721222f2..6533f876a7 100644 --- a/src/network/networkd-vxlan.c +++ b/src/network/networkd-vxlan.c @@ -25,6 +25,7 @@ #include "sd-rtnl.h" #include "networkd.h" +#include "missing.h" static int netdev_fill_vxlan_rtnl_message(NetDev *netdev, Link *link, sd_rtnl_message *m) { |