Systemd/src/network
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
..
.gitignore networkd: netdev - allow filtering on kernel cmdline, host and virt 2014-02-20 22:12:25 +01:00
Makefile networkd: add a basic network daemon 2013-11-09 23:41:17 +01:00
network-util.h networkd-wait-online: use automatic cleanup 2014-03-01 23:16:55 +01:00
networkd-address.c networkd: allow more than one static DNS server 2014-03-14 12:44:17 +01:00
networkd-link.c sd-ipv4ll/networkd: generate predictable addresses 2014-03-21 20:24:10 +01:00
networkd-manager.c networkd: update mac address in clients when it changes 2014-03-20 20:18:15 +01:00
networkd-netdev-gperf.gperf networkd: add basic support for MACVLANs 2014-02-25 21:19:08 +01:00
networkd-netdev.c networkd: netdev - support joining already existing netdevs 2014-03-15 20:10:36 +01:00
networkd-network-gperf.gperf sd-network: IPv4 link-local support [v2] 2014-03-03 23:24:34 +01:00
networkd-network.c networkd: allow more than one static DNS server 2014-03-14 12:44:17 +01:00
networkd-route.c sd-network: IPv4 link-local support [v2] 2014-03-03 23:24:34 +01:00
networkd-wait-online.c networkd: wait-online - fix typo 2014-03-03 23:24:34 +01:00
networkd.c networkd: fix creation of runtime dirs at startup 2014-03-14 12:44:17 +01:00
networkd.h sd-ipv4ll/networkd: generate predictable addresses 2014-03-21 20:24:10 +01:00
sd-network.c util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
test-network.c networkd: handle SIGINT and SIGTERM 2014-02-22 21:24:36 +01:00