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/lpf.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/lpf.c')
-rw-r--r-- | common/lpf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/lpf.c b/common/lpf.c index 2269f019..dfcdb3d8 100644 --- a/common/lpf.c +++ b/common/lpf.c @@ -302,6 +302,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 *)hh, &hbufp, hto); fudge = hbufp % 4; /* IP header must be word-aligned. */ |