BIND 10 trac2902, updated. 6e966c8f89b249a3f1c1a87201f24db656a06720 [2902] Source HW address is an interface MAC address.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Apr 30 10:41:26 UTC 2013


The branch, trac2902 has been updated
       via  6e966c8f89b249a3f1c1a87201f24db656a06720 (commit)
      from  882b1c68c77a1e3e8261fd7a8ff9d654313963b2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6e966c8f89b249a3f1c1a87201f24db656a06720
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue Apr 30 12:41:17 2013 +0200

    [2902] Source HW address is an interface MAC address.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcp/pkt_filter_lpf.cc |    5 +++++
 1 file changed, 5 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/pkt_filter_lpf.cc b/src/lib/dhcp/pkt_filter_lpf.cc
index d995ec9..1823c3b 100644
--- a/src/lib/dhcp/pkt_filter_lpf.cc
+++ b/src/lib/dhcp/pkt_filter_lpf.cc
@@ -164,6 +164,11 @@ PktFilterLPF::send(const Iface& iface, uint16_t sockfd, const Pkt4Ptr& pkt) {
 
     OutputBuffer buf(14);
 
+    HWAddrPtr hwaddr(new HWAddr(iface.getMac(), iface.getMacLen(),
+                                iface.getHWType()));
+    pkt->setLocalHWAddr(hwaddr);
+
+
     // Ethernet frame header.
     // Note that we don't validate whether HW addresses in 'pkt'
     // are valid because they are validated be the function called.



More information about the bind10-changes mailing list