]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Fix for unused variable in iface_mgr.cc
authorTomek Mrugalski <tomasz@isc.org>
Fri, 23 Dec 2011 15:22:20 +0000 (16:22 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 27 Dec 2011 14:43:53 +0000 (15:43 +0100)
src/lib/dhcp/iface_mgr.cc

index 97bc54fb91aca34dc75140715dfcae71299fbf89..b41d338680030df4eac1e9d7e3d70ec2edd2da19 100644 (file)
@@ -806,7 +806,7 @@ IfaceMgr::receive4() {
     pkt = boost::shared_ptr<Pkt4>(new Pkt4(buf, result));
 
     pkt->setIface(iface->getName());
-    pkt->setIndex(iface->getIndex());
+    pkt->setIndex(ifindex);
     pkt->setLocalAddr(to);
     pkt->setRemoteAddr(from);
     pkt->setRemotePort(from_port);