Linux: use broadcast flag with ipvlan interfaces by default.
Linux ipvlan interfaces share a MAC address with their siblings and
parent physical interface. Before they are assigned an IP address,
these virtual interfaces do not receive DHCP OFFER unicast messages
because the ipvlan driver does not know to pass them to the virtual
interface yet by IP. This chicken-and-egg problem is resolved with
two changes:
In this patch, we set the broadcast flag for an interface if it
belongs to the ipvlan driver, as detected via SIOCETHTOOL ETHTOOL_GDRVINFO.
(closes #32)
A forthcoming patch will automatically modify the DHCP IAID for
ipvlan interfaces so that they do not conflict with the parent
(lower/physical) interface IAID. For now, dhcpcd will display a warning
log message when conflicting IAID (same MAC address) interfaces are active.
(A minor grammar correction is included free of charge.)