Nmap Development mailing list archives
[PATCH] Fix references to foo_ethernet() which should read ethernet_foo() in docs/scripting.xml
From: jah <jah () zadkiel plus com>
Date: Wed, 20 Feb 2008 01:21:41 +0000
A'noon. Attached is scripting.xml.patch which should fix references to dnet open_ethernet(), send_ethernet() and close_ethernet() which should read ethernet_open(), ethernet_send() and ethernet_close() respectively. These also need fixing at http://nmap.org/nse/nse-api.html#nse-api-networkio-raw regards, jah
--- scripting.xml.orig Fri Feb 15 19:10:33 2008
+++ scripting.xml Wed Feb 20 01:10:29 2008
@@ -2414,8 +2414,8 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><option>dnet_object:open_ethernet(interface_name)</option>
- <indexterm><primary>open_ethernet</primary></indexterm></term>
+ <term><option>dnet_object:ethernet_open(interface_name)</option>
+ <indexterm><primary>ethernet_open</primary></indexterm></term>
<listitem>
<para>Opens the interface defined by the provided
<replaceable>interface_name</replaceable> for sending ethernet frames
@@ -2426,25 +2426,25 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><option>dnet_object:send_ethernet(packet)</option>
- <indexterm><primary>send_ethernet</primary></indexterm></term>
+ <term><option>dnet_object:ethernet_send(packet)</option>
+ <indexterm><primary>ethernet_send</primary></indexterm></term>
<listitem>
<para>
Sends the provided data as ethernet frame across the previously
opened interface. Note that you have to provide the packet
including IP header and ethernet header. If there was no
- previous valid call to <literal>open_ethernet()</literal> an
+ previous valid call to <literal>ethernet_open()</literal> an
error is thrown (<quote>dnet is not valid opened ethernet
interface</quote>).
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><option>dnet_object:close_ethernet()</option>
- <indexterm><primary>close_ethernet</primary></indexterm></term>
+ <term><option>dnet_object:ethernet_close()</option>
+ <indexterm><primary>ethernet_close</primary></indexterm></term>
<listitem>
<para>Closes the interface. The only error which may be thrown
- is the same as for the <literal>send_ethernet()</literal>
+ is the same as for the <literal>ethernet_send()</literal>
operation.
</para>
</listitem>
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCH] Fix references to foo_ethernet() which should read ethernet_foo() in docs/scripting.xml jah (Feb 19)
