Browse Source

[1239] Fix in IfaceMgr::receive4() method.

Tomek Mrugalski 13 years ago
parent
commit
7a05a543c3
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/dhcp/iface_mgr.cc

+ 3 - 2
src/lib/dhcp/iface_mgr.cc

@@ -685,11 +685,12 @@ IfaceMgr::receive4() {
     // we have all data let's create Pkt4 object
     pkt = boost::shared_ptr<Pkt4>(new Pkt4(buf, result));
 
-
+    pkt->setIface(iface->getName());
+    pkt->setIndex(iface->getIndex());
     pkt->setLocalAddr(to);
+    pkt->setRemoteAddr(from);
     pkt->setRemotePort(from_port);
     pkt->setLocalPort(candidate->port_);
-    // pkt->setRemoteAddr(from);
 
     return (pkt);
 }