diff options
| author | Justus Winter <justus@gnupg.org> | 2016-11-05 18:41:13 +0100 | 
|---|---|---|
| committer | Justus Winter <justus@gnupg.org> | 2016-11-05 18:47:09 +0100 | 
| commit | 54c6736341bda9564a028ad3d61d46488e53b8a6 (patch) | |
| tree | 0e27d98a6ace8074b63a5ab60576c292ffbd529b /install-sh | |
| parent | 115695afe34e5253816ff0e828054f8c07e2ddbd (diff) | |
eth-multiplexer: Generate stable ethernet addresses.
Previously, the ethernet multiplexer generated ethernet addresses for
the virtual interfaces using a pseudo-random number generator.  This
has the downside of generating a new address every time.  Generate
stable pseudo-random addresses instead.
* eth-multiplexer/Makefile (HURDLIBS): Link to libihash.
* eth-multiplexer/ethernet.c (ether_address): New variable.
(get_ethernet_address): New function.
(ethernet_open): Get the ethernet address of the real interface.
* eth-multiplexer/ethernet.h (ether_address): New declaration.
* eth-multiplexer/vdev.c (add_vdev): Compute the ethernet address by
hashing the address of the real interface with the name of the virtual
interface.
Diffstat (limited to 'install-sh')
0 files changed, 0 insertions, 0 deletions
