mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 23:49:03 +00:00
NSEDoc cleaning and whitespace formatting.
This commit is contained in:
@@ -2332,7 +2332,7 @@ Helper = {
|
||||
|
||||
--- Connects to a remote NFS server
|
||||
--
|
||||
-- This is a high level function to be used by NSE scripts
|
||||
-- This is a high level function to open NFS connections
|
||||
-- To close the NFS connection use NfsClose() function
|
||||
--
|
||||
-- @param host table
|
||||
@@ -2362,9 +2362,9 @@ Helper = {
|
||||
|
||||
--- Closes the NFS connection
|
||||
--
|
||||
-- This is a high level function to be used by NSE scripts
|
||||
-- This function must be used close a NFS connection opened
|
||||
-- by NfsOpen() call
|
||||
-- This is a high level function to close NFS connections
|
||||
-- This function must be used to close the NFS connection
|
||||
-- opened by the NfsOpen() call
|
||||
--
|
||||
-- @param nfs_comm object returned by NfsOpen()
|
||||
-- @return true on success or nil on failure
|
||||
@@ -2410,7 +2410,7 @@ Helper = {
|
||||
|
||||
-- TODO: recheck the version mismatch when adding NFSv4
|
||||
if (nfs_comm.version <= 2 and mnt_comm.version > 2) then
|
||||
stdnse.print_debug(4, "rpc.Helper.ExportStats: versions mismatch, nfs v%d - mount v%d",
|
||||
stdnse.print_debug(4,"rpc.Helper.ExportStats: versions mismatch, nfs v%d - mount v%d",
|
||||
nfs_comm.version, mnt_comm.version)
|
||||
return false, string.format("versions mismatch, nfs v%d - mount v%d",
|
||||
nfs_comm.version, mnt_comm.version)
|
||||
@@ -2687,13 +2687,12 @@ Helper = {
|
||||
-- @return info table containing <code>port</code>, <code>port.number</code>
|
||||
-- <code>port.protocol</code> and <code>version</code>
|
||||
GetProgramInfo = function( host, port, program, max_version )
|
||||
local info
|
||||
|
||||
local status, portmap_table = Helper.RpcInfo(host, port)
|
||||
if ( not(status) ) then
|
||||
return status, portmap_table
|
||||
end
|
||||
|
||||
local info = {}
|
||||
-- assume failure
|
||||
status = false
|
||||
|
||||
@@ -2732,7 +2731,6 @@ Helper = {
|
||||
|
||||
return status, info
|
||||
end,
|
||||
|
||||
}
|
||||
|
||||
--- Static class containing mostly conversion functions
|
||||
@@ -3344,5 +3342,4 @@ Util =
|
||||
return 0
|
||||
end
|
||||
end
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user