Add more incoming DHCP packet types to config
authorMatthew Newton <mcn4@leicester.ac.uk>
Fri, 14 Mar 2014 14:21:46 +0000 (14:21 +0000)
committerMatthew Newton <mcn4@leicester.ac.uk>
Fri, 14 Mar 2014 14:34:17 +0000 (14:34 +0000)
raddb/sites-available/dhcp

index 91f8d39..c4b9eba 100644 (file)
@@ -204,15 +204,30 @@ dhcp DHCP-Request {
 }
 
 #
-#  There should be a separate section for each DHCP message type.
+#  Other DHCP packet types
 #
+#  There should be a separate section for each DHCP message type.
+#  By default this configuration will ignore them all. Any packet type
+#  not defined here will be responded to with a DHCP-NAK.
+
+dhcp DHCP-Decline {
+       update reply {
+              DHCP-Message-Type = DHCP-Do-Not-Respond
+       }
+       reject
+}
+
 dhcp DHCP-Inform {
-       #  The DHCP-Message-Type attribute will tell the server which
-       #  type of packet to respond with. If this is not set, then
-       #  "handled" will not return a response, whereas all other
-       #  rcodes will return a "NAK".
-       #
-       #  Send a DHCP NAK.
+       update reply {
+              DHCP-Message-Type = DHCP-Do-Not-Respond
+       }
+       reject
+}
+
+dhcp DHCP-Release {
+       update reply {
+              DHCP-Message-Type = DHCP-Do-Not-Respond
+       }
        reject
 }