NetworkManager/src/platform/tests
Thomas Haller 6c8aa669a4 platform: properly handle IPv4 peer-addresses
The peer-address (IFA_ADDRESS) can also be all-zero (0.0.0.0).
That is distinct from an usual address without explicit peer-address,
which implicitly has the same peer and local address.

Previously, we treated an all-zero peer_address as having peer and
local address equal. This is especially grave, because the peer is part
of the primary key for an IPv4 address. So we not only get a property of
the address wrong, but we wrongly consider two different addresses as
one and the same.

To properly handle these addresses, we always must explicitly set the peer.
2015-11-02 13:57:01 +01:00
..
.gitignore platform: add nmp-object.h file 2015-06-17 11:23:51 +02:00
Makefile.am platform/tests: remove "dump" test-program 2015-11-01 17:28:09 +01:00
monitor.c platform/tests: use "nm-test-utils.h" in "monitor.c" 2015-11-01 17:28:09 +01:00
platform.c platform: properly handle IPv4 peer-addresses 2015-11-02 13:57:01 +01:00
test-address.c platform: properly handle IPv4 peer-addresses 2015-11-02 13:57:01 +01:00
test-cleanup.c platform: properly handle IPv4 peer-addresses 2015-11-02 13:57:01 +01:00
test-common.c platform: properly handle IPv4 peer-addresses 2015-11-02 13:57:01 +01:00
test-common.h platform/tests: add test cases for detecting lnk data 2015-11-02 13:57:01 +01:00
test-general.c platform: add buffer argument to platform to-string functions 2015-11-01 17:28:08 +01:00
test-link.c platform/tests: add test setting vlan ingress/egress mappings 2015-11-02 13:57:01 +01:00
test-nmp-object.c platform/trivial: rename "auto_nmp_obj" macro to "nm_auto_nmpobj" 2015-10-20 14:43:54 +02:00
test-route.c platform/test: introduce _LOGD() macros to fake platform and platform tests 2015-09-04 11:06:26 +02:00