mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
Rename readip_pcap -> readipv4_pcap and readip46_pcap to readip_pcap.
We should have the multiprotocol version be the main version, with IPv4-only code being a noted exception. Also these functions are almost the same so one can call the other.
This commit is contained in:
8
tcpip.h
8
tcpip.h
@@ -632,12 +632,12 @@ int get_link_offset(char *device);
|
||||
filled with the time that packet was captured from the wire by
|
||||
pcap. If linknfo is not NULL, lnknfo->headerlen and
|
||||
lnkinfo->header will be filled with the appropriate values. */
|
||||
char *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
||||
struct timeval *rcvdtime, struct link_header *linknfo, bool validate);
|
||||
|
||||
char *readip46_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
||||
char *readipv4_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
||||
struct timeval *rcvdtime, struct link_header *linknfo, bool validate);
|
||||
|
||||
char *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
||||
struct timeval *rcvdtime, struct link_header *linknfo, bool validate);
|
||||
|
||||
/* Attempts to read one IPv4/Ethernet ARP reply packet from the pcap
|
||||
descriptor pd. If it receives one, fills in sendermac (must pass
|
||||
in 6 bytes), senderIP, and rcvdtime (can be NULL if you don't care)
|
||||
|
||||
Reference in New Issue
Block a user