summaryrefslogtreecommitdiff
path: root/libnetfs/callbacks.h
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-11-05 18:41:13 +0100
committerJustus Winter <justus@gnupg.org>2016-11-05 18:47:09 +0100
commit54c6736341bda9564a028ad3d61d46488e53b8a6 (patch)
tree0e27d98a6ace8074b63a5ab60576c292ffbd529b /libnetfs/callbacks.h
parent115695afe34e5253816ff0e828054f8c07e2ddbd (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 'libnetfs/callbacks.h')
0 files changed, 0 insertions, 0 deletions