DHCP Sending NAK in reply to Discover (BUG)
sergey
sergey at orbita.dp.ua
Tue Apr 6 12:13:25 CEST 2010
--- 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:
More information about the Freeradius-Users
mailing list