--- dhcpd.c.old    2010-04-06 12:35:28.000000000 +0300
+++ dhcpd.c    2010-04-06 12:55:43.000000000 +0300
@@ -150,7 +150,11 @@
    case RLM_MODULE_INVALID:
    case RLM_MODULE_NOOP:
    case RLM_MODULE_NOTFOUND:
-        request->reply->code = PW_DHCP_NAK;
+        if (request->packet->code == PW_DHCP_DISCOVER) {
+            request->reply->code = 0;
+        } else {
+            request->reply->code = PW_DHCP_NAK;
+        }
        break;

    case RLM_MODULE_HANDLED:


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to