Systemd/src
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
..
ac-power
activate activate: export make_socket_fd 2014-03-17 01:55:48 -04:00
analyze analyze: fix plot issues when using gummiboot 2014-01-31 07:12:43 +01:00
ask-password clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
backlight backlight: Avoid restoring brightness to an unreadably dim level 2014-03-12 16:43:51 +01:00
binfmt shared: add root argument to search_and_fopen 2014-03-14 09:31:34 -04:00
boot make gcc shut up 2014-02-19 17:53:50 +01:00
bootchart Remove dead lines in various places 2014-02-24 19:24:14 -05:00
bus-driverd Introduce strv_consume which takes ownership 2014-03-04 10:04:50 -05:00
bus-proxyd Remove dead lines in various places 2014-02-24 19:24:14 -05:00
cgls clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
cgroups-agent cgroups-agent: down-grade log level 2013-11-25 17:40:53 +01:00
cgtop make gcc shut up 2014-02-19 17:53:50 +01:00
compat-libs build-sys: build compat libs from sources, avoiding the not generally available ifunc wrapping 2014-02-22 21:28:55 +01:00
core timer: add timer persistance (aka anacron-like behaviour) 2014-03-21 03:43:46 +01:00
cryptsetup cryptsetup: call static variables parsed from command line arg_XYZ like in all other tools 2014-03-13 00:46:58 +01:00
dbus1-generator units: remove "AllowUser=root own", the bus owner can always own names 2014-03-08 19:38:06 +01:00
delta delta: ensure that d_type will be set on every fs 2014-01-09 16:43:00 +01:00
detect-virt virt: make Virtualization an anonymous enum 2014-02-24 13:26:44 +01:00
efi-boot-generator efi-boot-generator: typo fix 2014-03-07 02:40:24 +01:00
fsck util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
fstab-generator fstab-generator: when running in a container, ignore fstab entries referring to device nodes 2014-03-11 18:02:27 +01:00
getty-generator getty: Start getty on 3270 terminals available on Linux on System z 2014-03-13 10:42:26 +01:00
gpt-auto-generator gpt-auto-generator: there's no point in looking for a superblock on raw disk, we only care for a partition table 2014-03-13 01:06:41 +01:00
gudev gudev: add device::get_sysfs_attr_keys and device::has_sysfs_attr 2014-02-22 18:48:01 +01:00
hostname hostnamectl: read OS pretty_name and cpe_name from remote 2014-03-11 17:48:45 +01:00
initctl util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
journal util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
kernel-install kernel-install: fix help output 2013-12-09 23:19:16 -05:00
libsystemd sd-bus: don't use assert_return() to check for disconnected bus connections 2014-03-19 21:41:21 +01:00
libsystemd-network sd-ipv4ll/networkd: generate predictable addresses 2014-03-21 20:24:10 +01:00
libudev everywhere: make use of new0() and macro() macros, and stop using perror() 2014-02-13 14:45:51 +01:00
locale api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
login util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
machine util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
machine-id-setup machine-id-setup: use path_kill_slashes and modernizations 2014-03-14 09:31:34 -04:00
modules-load shared: add root argument to search_and_fopen 2014-03-14 09:31:34 -04:00
network sd-ipv4ll/networkd: generate predictable addresses 2014-03-21 20:24:10 +01:00
notify clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
nspawn util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
nss-myhostname Remove duplicate includes 2013-11-18 20:28:55 -05:00
python-systemd python: reindent _reader.c 2014-02-20 19:14:52 +01:00
quotacheck util: move more intellegince into parse_proc_cmdline() 2014-03-06 18:48:22 +01:00
random-seed random-seed: improve debugging messages a bit 2013-11-15 22:53:14 -05:00
rc-local-generator rc-local: use access(X_OK) to check if files are executable 2013-10-29 19:34:59 +01:00
readahead util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
remount-fs Introduce _cleanup_endmntent_ 2013-10-03 22:13:55 -04:00
reply-password util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
rfkill rfkill: Avoid error when state restore is disabled 2013-12-06 16:44:38 +01:00
run systemd-run: don't print error messages twice 2014-03-05 19:03:10 +01:00
shared sd-ipv4ll/networkd: generate predictable addresses 2014-03-21 20:24:10 +01:00
shutdownd util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
sleep util: add timeout to generator execution 2014-03-06 04:00:42 +01:00
socket-proxy util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
sysctl Use strlen even for constant strings 2014-03-16 09:52:56 -04:00
system-update-generator Standarize on one spelling of symlink error message 2013-04-24 00:25:04 -04:00
systemctl systemctl: sort local host entry before container in list-machines output 2014-03-18 04:46:55 +01:00
systemd sd-ipv4ll/networkd: generate predictable addresses 2014-03-21 20:24:10 +01:00
test util: add new FOREACH_STRING() macro as syntactic sugar to iterate through a number of fixed strings 2014-03-19 00:54:41 +01:00
timedate timedated: do not reset poll interval with a spike 2014-03-21 20:22:38 +01:00
tmpfiles util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
tty-ask-password-agent util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
udev sd-ipv4ll/networkd: generate predictable addresses 2014-03-21 20:24:10 +01:00
update-utmp utmp: make sure we don't write the utmp reboot record twice on each boot 2014-01-30 14:18:46 +01:00
vconsole util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
.gitignore Add test coverage and generate report with lcov 2013-07-13 21:56:33 -04:00
Makefile