Parcourir la source

[3367] Removed excessive call to setCiaddr in DHCPv4 server.

Marcin Siodelski il y a 10 ans
Parent
commit
ca6c71ff92
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      src/bin/dhcp4/dhcp4_srv.cc

+ 0 - 1
src/bin/dhcp4/dhcp4_srv.cc

@@ -504,7 +504,6 @@ void
 Dhcpv4Srv::copyDefaultFields(const Pkt4Ptr& question, Pkt4Ptr& answer) {
     answer->setIface(question->getIface());
     answer->setIndex(question->getIndex());
-    answer->setCiaddr(question->getCiaddr());
 
     answer->setSiaddr(IOAddress("0.0.0.0")); // explicitly set this to 0
     // ciaddr is always 0, except for the Renew/Rebind state when it may