mirror of
https://github.com/nmap/nmap.git
synced 2025-12-12 02:39:03 +00:00
Corrected and reformatted the raw packet I/O documentation.
This commit is contained in:
@@ -590,8 +590,8 @@ function set_timeout(t)
|
|||||||
-- from.
|
-- from.
|
||||||
-- @param snaplen The length of each packet you want to capture (similar to the
|
-- @param snaplen The length of each packet you want to capture (similar to the
|
||||||
-- <code>-s</code> option to tcpdump)
|
-- <code>-s</code> option to tcpdump)
|
||||||
-- @param promisc Set to 1 if the interface should activate promiscuous mode,
|
-- @param promisc Boolean value for whether the interface should activate
|
||||||
-- and 0 otherwise.
|
-- promiscuous mode.
|
||||||
-- @param bpf A string describing a Berkeley Packet Filter expression (like
|
-- @param bpf A string describing a Berkeley Packet Filter expression (like
|
||||||
-- those provided to tcpdump).
|
-- those provided to tcpdump).
|
||||||
-- @see new_socket, pcap_receive
|
-- @see new_socket, pcap_receive
|
||||||
@@ -607,8 +607,8 @@ function pcap_open(device, snaplen, promisc, bpf)
|
|||||||
-- layer two header, layer three header and packet capture time.
|
-- layer two header, layer three header and packet capture time.
|
||||||
-- @return Status (true or false).
|
-- @return Status (true or false).
|
||||||
-- @return The length of the captured packet (this may be smaller than the
|
-- @return The length of the captured packet (this may be smaller than the
|
||||||
-- actual packet length since packets are truncated when the Libpcap snaplen
|
-- actual packet length since packets are truncated when the
|
||||||
-- parameter is smaller than the total packet length).
|
-- libpcap snaplen parameter is smaller than the total packet length).
|
||||||
-- @return Data from the second OSI layer (e.g. ethernet headers).
|
-- @return Data from the second OSI layer (e.g. ethernet headers).
|
||||||
-- @return Data from the third OSI layer (e.g. IPv4 headers).
|
-- @return Data from the third OSI layer (e.g. IPv4 headers).
|
||||||
-- @return Packet capture time, as floating point seconds since the epoch
|
-- @return Packet capture time, as floating point seconds since the epoch
|
||||||
|
|||||||
Reference in New Issue
Block a user