ipv4acd: rework how we pick ipv4ll addresses
authorLennart Poettering <lennart@poettering.net>
Mon, 23 May 2016 17:24:21 +0000 (19:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 May 2016 13:34:43 +0000 (15:34 +0200)
commit96a7979f3d77d1e629dcfe5ee018d18c281771a1
tree29b1b6e1623d03d7cb8b858eecf88eeafbbeed16
parent38958cd66e87037c75109408bf4093be21811eba
ipv4acd: rework how we pick ipv4ll addresses

Let's make the seed actually work as stable seed, and use siphash24 to generate
the series of addresses, instead of the opaque libc random_r().

This not only makes the seed truly work as stable, portable seed, but also
makes the code quite a bit shorter, and removes a couple of memory allocations.
src/libsystemd-network/sd-ipv4ll.c