NetworkManager/src/platform
Thomas Haller b1e3deaf2f nmp-object: refactor handling of NMPCacheId to consider only relevant part of union
NMPCacheId is a union with fields for all known NMPCacheIdTypes.
Up to now, we always cloned the entire union, computed the hash
over all (possibly unset) fields and used memcmp() unanimously.

That was ok, because NMPCacheId was 16 bytes in total and cache-id
types that consumed less bytes didn't have a large overhead.

Next, we will add a new cache id type which increases the size of
NMPCacheId to 24 bytes. So, while possibly only a fraction of the
instances is that large, they would all have to pay that price.

Change that to consider and clone only those parts of the id
that are actually used.
2016-04-11 11:26:36 +02:00
..
tests build: disable deprecation checks for internal compilation 2016-04-05 22:22:58 +02:00
wifi wifi: hack for wext devices reporting IW_MODE_AUTO configuration mode. 2016-03-11 18:59:40 +01:00
Makefile.am platform: add minimal Makefile.am for convenience 2013-06-19 13:48:29 +02:00
nm-fake-platform.c platform: add flags argument to nm_platform_ip4_address_add() 2016-03-01 15:09:16 +01:00
nm-fake-platform.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-linux-platform.c platform: add nm_platform_link_can_assume() 2016-04-04 15:33:16 +02:00
nm-linux-platform.h logging: make logging independent of platform 2016-03-01 12:42:42 +01:00
nm-platform-utils.c core: move simple utils function from "nm-platform-utils.h" 2016-03-07 11:49:52 +01:00
nm-platform-utils.h core: move simple utils function from "nm-platform-utils.h" 2016-03-07 11:49:52 +01:00
nm-platform.c platform: add nm_platform_link_can_assume() 2016-04-04 15:33:16 +02:00
nm-platform.h platform: add nm_platform_link_can_assume() 2016-04-04 15:33:16 +02:00
nmp-netns.c platform: add nmp_netns_bind_to_path() helper function 2016-03-15 12:56:59 +01:00
nmp-netns.h platform: add nmp_netns_bind_to_path() helper function 2016-03-15 12:56:59 +01:00
nmp-object.c nmp-object: refactor handling of NMPCacheId to consider only relevant part of union 2016-04-11 11:26:36 +02:00
nmp-object.h nmp-object: refactor handling of NMPCacheId to consider only relevant part of union 2016-04-11 11:26:36 +02:00