]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5443] Updated DHCPv4-over-DHCPv6 services
authorFrancis Dupont <fdupont@isc.org>
Sat, 16 Dec 2017 23:09:10 +0000 (00:09 +0100)
committerFrancis Dupont <fdupont@isc.org>
Sat, 16 Dec 2017 23:09:10 +0000 (00:09 +0100)
src/bin/dhcp4/dhcp4to6_ipc.cc
src/bin/dhcp6/dhcp6to4_ipc.cc

index b21920726552923e99288edbb3005d522a1c1c0c..e1222a1bb85adec415f69cfc6ca431cf35e5106e 100644 (file)
@@ -133,15 +133,14 @@ void Dhcp4to6Ipc::handler() {
             // Callouts decided to skip the next processing step. The next
             // processing step would to parse the packet, so skip at this
             // stage means drop.
-            if (callout_handle->getStatus() == CalloutHandle::NEXT_STEP_SKIP) {
+            if ((callout_handle->getStatus() == CalloutHandle::NEXT_STEP_SKIP) ||
+                (callout_handle->getStatus() == CalloutHandle::NEXT_STEP_DROP)) {
                 LOG_DEBUG(hooks_logger, DBG_DHCP4_HOOKS,
                           DHCP4_HOOK_BUFFER_SEND_SKIP)
                     .arg(rsp->getLabel());
                 return;
             }
 
-            /// @todo: Add support for DROP status.
-
             callout_handle->getArgument("response4", rsp);
         }
 
index 7ec9397973e7216ff87bd7ff24f849868532f347..0e8356516c205cbb5fdb0b766b164d93a8f059d3 100644 (file)
@@ -119,14 +119,13 @@ void Dhcp6to4Ipc::handler() {
             // Callouts decided to skip the next processing step. The next
             // processing step would to parse the packet, so skip at this
             // stage means drop.
-            if (callout_handle->getStatus() == CalloutHandle::NEXT_STEP_SKIP) {
+            if ((callout_handle->getStatus() == CalloutHandle::NEXT_STEP_SKIP) ||
+                (callout_handle->getStatus() == CalloutHandle::NEXT_STEP_DROP)) {
                 LOG_DEBUG(hooks_logger, DBG_DHCP6_HOOKS, DHCP6_HOOK_BUFFER_SEND_SKIP)
                     .arg(pkt->getLabel());
                 return;
             }
 
-            /// @todo: Add support for DROP status
-
             callout_handle->getArgument("response6", pkt);
         }