Systemd/src/systemd
Umut Tezduyar Lindskog b5db00e52e sd-ipv4ll/networkd: generate predictable addresses
Increase the chance of using the same link local address between reboots. The
pseudo random sequence of addresses we attempt is now seeded with data that is
very likely to stay the same between reboots, but at the same time be unique
to the specific machine/nic.

First we try to use the ID_NET_NAME_* data from the udev db combined with the
machin-id, which is guaranteed to be unique and persistent, if available. If
that is not possible (e.g., in containers where we don't have access to the
udev db) we fallback to using the MAC address of the interface, which is
guaranteed to be unique, and likely to be persistent.

[tomegun: three minor changes:

 - don't expose HASH_KEY in the siphash24 header
 - get rid of some compile-warnings (and some casts at the same time),
   by using uint8_t[8] rather than uint64_t in the api
 - added commit message]
2014-03-21 20:24:10 +01:00
..
_sd-common.h include: make direct includion of _sd-common.h harder 2013-11-20 19:36:14 +01:00
Makefile build-sys: add stub makefiles to subdirs 2012-01-05 16:29:21 +01:00
sd-bus-protocol.h driverd: implement AddMatch/RemoveMatch logic 2013-12-19 04:40:56 +01:00
sd-bus-vtable.h bus: introduce concept of "const" properties 2013-12-22 03:50:52 +01:00
sd-bus.h sd-bus: add proper monitoring API 2014-03-19 04:17:00 +01:00
sd-daemon.h sd-damon is LGPL now 2014-02-19 18:23:14 +01:00
sd-dhcp-client.h sd-network: add new library 2014-02-28 01:01:13 +01:00
sd-dhcp-lease.h sd-dhcp-lease: add sd_dhcp_lease_get_next_server() 2014-03-03 17:18:22 +01:00
sd-event.h event: add new kind of event source called "post" 2014-02-21 21:13:53 +01:00
sd-id128.h bus: rework bloom filter logic to operate with variable bloom filter 2014-01-28 00:57:38 +01:00
sd-ipv4ll.h sd-ipv4ll/networkd: generate predictable addresses 2014-03-21 20:24:10 +01:00
sd-journal.h api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-login.h sd-login: add calls that retrieve credentials of peers connected to AF_UNIX peers 2014-03-17 18:15:57 +01:00
sd-memfd.h api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-messages.h logind: detect whether the system is docked, and if it is inhibit lid switch processing 2014-02-24 16:22:23 +01:00
sd-network.h sd-network: fix header 2014-02-28 02:08:08 +01:00
sd-readahead.h build-sys: merge libsystemd-daemon into libsystemd 2014-02-19 01:09:19 +01:00
sd-resolve.h core, libsystemd, systemd, timedate, udev: spelling fixes 2014-03-17 02:35:35 -04:00
sd-rtnl.h sd-rtnl: never treat broadcasts as replies 2014-03-16 13:05:04 +01:00
sd-shutdown.h shutdown: as sd-shutdown.h is a drop-in header it should not include any other headers of ours 2013-11-07 16:53:26 +01:00
sd-utf8.h bus: export utf8 validator calls as pure functions 2013-11-12 00:12:44 +01:00