sd-dhcp-client: support non-Ethernet hardware addresses
authorDan Williams <dcbw@redhat.com>
Wed, 8 Oct 2014 19:15:45 +0000 (14:15 -0500)
committerTom Gundersen <teg@jklm.no>
Sat, 11 Oct 2014 10:15:54 +0000 (12:15 +0200)
commit76253e73f9c9c24fec755e485516f3b55d0707b4
treeae99dc09b50a8d8de2428dbc6e6b57f51ef6776c
parent5482192e5774f52f2af0665a3b58539295e9c0a4
sd-dhcp-client: support non-Ethernet hardware addresses

Like Infiniband.  See RFC 4390 section 2.1 for details on DHCP
and Infiniband; chaddr is zeroed, hlen is set to 0, and htype
is set to ARPHRD_INFINIBAND because IB hardware addresses
are 20 bytes in length.
13 files changed:
src/libsystemd-network/dhcp-internal.h
src/libsystemd-network/dhcp-network.c
src/libsystemd-network/dhcp-packet.c
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd-network/sd-dhcp-server.c
src/libsystemd-network/sd-dhcp6-client.c
src/libsystemd-network/test-dhcp-client.c
src/libsystemd-network/test-dhcp-option.c
src/libsystemd-network/test-dhcp6-client.c
src/network/networkd-dhcp4.c
src/network/networkd-link.c
src/systemd/sd-dhcp-client.h
src/systemd/sd-dhcp6-client.h