diff options
author | David Hankins <dhankins@isc.org> | 2009-03-13 21:41:45 +0000 |
---|---|---|
committer | David Hankins <dhankins@isc.org> | 2009-03-13 21:41:45 +0000 |
commit | 0829d595f8f98ad4121cfc96870958e359c099cc (patch) | |
tree | 01078a188bf6ca45177c423dd299ed480eff3889 /common/upf.c | |
parent | 4b97eaff2f22bf1743ea67ac477c9aef72070ed4 (diff) | |
download | isc-dhcp-0829d595f8f98ad4121cfc96870958e359c099cc.tar.gz |
- If configured, dhclient may now transmit to an anycast MAC address,
rather than using a broadcast address. Thanks to a patch from David
Cantrell at Red Hat. [ISC-Bugs #17740]
Diffstat (limited to 'common/upf.c')
-rw-r--r-- | common/upf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/upf.c b/common/upf.c index 9c66a758..611ed23f 100644 --- a/common/upf.c +++ b/common/upf.c @@ -260,6 +260,9 @@ ssize_t send_packet (interface, packet, raw, len, from, to, hto) return send_fallback (interface, packet, raw, len, from, to, hto); + if (hto == NULL && interface->anycast_mac_addr.hlen) + hto = &interface->anycast_mac_addr; + /* Assemble the headers... */ assemble_hw_header (interface, (unsigned char *)hw, &hbufp, hto); assemble_udp_ip_header (interface, |