mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Fix some NSEDoc. Some libraries had @copyright and @author right at the
top of the first comment, so the entire description got stuffed into the @author field. I also discovered a limitation in the NSEDoc parser: the first non-empty line following the first --- comment must be the "module" call, or else the block isn't recognized as belonging to a module. This was preventing @args from appearing in certain libraries. Djalal Harouni told me about this.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
--- RPC Library supporting a very limited subset of operations
|
||||
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
|
||||
--
|
||||
-- @author = "Patrik Karlsson <patrik@cqure.net>"
|
||||
---
|
||||
-- RPC Library supporting a very limited subset of operations
|
||||
--
|
||||
-- Summary
|
||||
-- -------
|
||||
@@ -77,12 +75,18 @@
|
||||
-- When multiple versions exists for a specific RPC program the library
|
||||
-- always attempts to connect using the highest available version.
|
||||
--
|
||||
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
|
||||
--
|
||||
-- @author "Patrik Karlsson <patrik@cqure.net>"
|
||||
--
|
||||
-- @args nfs.version number If set overrides the detected version of nfs
|
||||
-- @args mount.version number If set overrides the detected version of mountd
|
||||
-- @args rpc.protocol table If set overrides the preferred order in which
|
||||
-- protocols are tested. (ie. "tcp", "udp")
|
||||
|
||||
--
|
||||
module(... or "rpc", package.seeall)
|
||||
require("datafiles")
|
||||
|
||||
-- Version 0.3
|
||||
--
|
||||
-- Created 01/24/2010 - v0.1 - created by Patrik Karlsson <patrik@cqure.net>
|
||||
@@ -91,9 +95,6 @@
|
||||
-- Revised 03/13/2010 - v0.3 - re-worked library to be OO
|
||||
--
|
||||
|
||||
module(... or "rpc", package.seeall)
|
||||
require("datafiles")
|
||||
|
||||
|
||||
-- Defines the order in which to try to connect to the RPC programs
|
||||
-- TCP appears to be more stable than UDP in most cases, so try it first
|
||||
|
||||
Reference in New Issue
Block a user