BIND 10 trac3231, updated. 861a9b6fbd5ecdb277345abbac98b8f8893e5db4 [3231] Use isRelayed instead of checking Giaddr value in DHCPv4 srv.
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jan 9 10:55:39 UTC 2014
The branch, trac3231 has been updated
via 861a9b6fbd5ecdb277345abbac98b8f8893e5db4 (commit)
from 4d83e8f254cb653da6c102b73637b09e1764fe24 (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 861a9b6fbd5ecdb277345abbac98b8f8893e5db4
Author: Marcin Siodelski <marcin at isc.org>
Date: Thu Jan 9 11:55:31 2014 +0100
[3231] Use isRelayed instead of checking Giaddr value in DHCPv4 srv.
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp4/dhcp4_srv.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc
index 3c6afc5..6e09781 100644
--- a/src/bin/dhcp4/dhcp4_srv.cc
+++ b/src/bin/dhcp4/dhcp4_srv.cc
@@ -1187,7 +1187,7 @@ Dhcpv4Srv::adjustRemoteAddr(const Pkt4Ptr& question, const Pkt4Ptr& response) {
static const IOAddress bcast_addr("255.255.255.255");
// If received relayed message, server responds to the relay address.
- if (question->getGiaddr() != zero_addr) {
+ if (question->isRelayed()) {
response->setRemoteAddr(question->getGiaddr());
// If giaddr is 0 but client set ciaddr, server should unicast the
More information about the bind10-changes
mailing list