Commit 861a9b6f authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3231] Use isRelayed instead of checking Giaddr value in DHCPv4 srv.

parent 4d83e8f2
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment