NetworkManager/src/platform
Thomas Haller 6da20c24cd platform: avoid compiler warning in _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX()
Surisingly, the compiler may detect the remaining obj_type in
the default switch. Then, inlining nmp_class_from_type() it may detect
that this is only possible to hit with an out or range access to
_nmp_classes array.

Rework the code to avoid that compiler warning. It's either way not
supposed to happen.

Also, drop the default switch case and explicitly list the enum values.
Otherwise it is error prone to forget a switch case.

(cherry picked from commit 9848589fbf)
(cherry picked from commit 6f189da7b6)
2020-04-20 09:28:29 +02:00
..
linux platform: import nl82154.h 2018-06-26 16:21:54 +02:00
tests platform/tests: relax assertion for platform signal in test_slave() 2019-08-02 13:38:32 +02:00
wifi wifi: add OLPC Mesh support via nl80211 2019-09-07 17:26:16 +02:00
wpan platform: assert for out-of-memory in netlink code 2019-05-07 20:58:17 +02:00
nm-fake-platform.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-fake-platform.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-linux-platform.c platforn/linux: don't fall back to WEXT for OLPC Mesh 2019-09-07 17:26:16 +02:00
nm-linux-platform.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-netlink.c platform/netlink: mark nested netlink attribute with NLA_F_NESTED 2019-07-23 14:43:50 +02:00
nm-netlink.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-platform-private.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-platform-utils.c platform: fix GCC warning about zero-length array in nmp_utils_ethtool_get_permanent_address() 2020-04-20 07:44:14 +02:00
nm-platform-utils.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-platform.c ipv6: set neighbor parameters from RAs 2019-11-15 16:17:33 +01:00
nm-platform.h ipv6: set neighbor parameters from RAs 2019-11-15 16:17:33 +01:00
nmp-netns.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nmp-netns.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nmp-object.c platform: make plobj argument of nmp_object_new() void pointer 2019-07-29 18:39:49 +02:00
nmp-object.h platform: avoid compiler warning in _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX() 2020-04-20 09:28:29 +02:00
nmp-rules-manager.c all: codespell fixes 2019-07-24 11:30:19 +02:00
nmp-rules-manager.h policy-routing: take ownership of externally configured rules 2019-07-16 10:16:07 +02:00