From 6adb9d3609a6c15e0423d3751e0bcd86cf0f65fa Mon Sep 17 00:00:00 2001 From: nnposter Date: Thu, 22 Aug 2024 03:01:54 +0000 Subject: [PATCH] Correct the documentation for dhcp.dhcp_parse(), as it is explicitly wired to process only DHCP replies. Any other DHCP packet types are rejected. --- nselib/dhcp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nselib/dhcp.lua b/nselib/dhcp.lua index 73b453a1a..d41604770 100644 --- a/nselib/dhcp.lua +++ b/nselib/dhcp.lua @@ -453,8 +453,7 @@ function dhcp_build(request_type, ip_address, mac_address, options, request_opti return true, strbuf.dump(packet) end ----Parse a DHCP packet (either a request or a response) and return the results --- as a table. +---Parse a DHCP response and return the results as a table. -- -- The table at the top of this function (actions) defines the -- name of each field, as laid out in rfc2132, and the function that parses it.