]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#898] Added DHCP class and config example
authorTomek Mrugalski <tomasz@isc.org>
Thu, 21 Nov 2019 05:42:10 +0000 (13:42 +0800)
committerFrancis Dupont <fdupont@isc.org>
Tue, 10 Dec 2019 21:27:50 +0000 (22:27 +0100)
src/hooks/dhcp/bootp/bootp_callouts.cc

index 565df2249c990dd3ea00c76db9ce279160792aeb..53684ea32a5062862973a0a86a0f8b3c5efcd930 100644 (file)
@@ -40,6 +40,7 @@ int buffer4_receive(CalloutHandle& handle) {
 
         if (copy->getType() != DHCP_NOTYPE) {
             // DHCP query.
+            query->addClass("DHCP");
             return (0);
         }
         if (copy->getOp() == BOOTREPLY) {