1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 06:29:03 +00:00

Consolidate duplicate functions read_na_pcap and read_ns_reply_pcap.

This commit is contained in:
dmiller
2020-01-13 23:33:30 +00:00
parent 4ffeb09ad3
commit 86f80305a1
5 changed files with 17 additions and 95 deletions

View File

@@ -580,7 +580,7 @@ int read_arp_reply_pcap(pcap_t *pd, u8 *sendermac,
void (*traceArp_callback)(int, const u8 *, u32 , struct timeval *));
int read_ns_reply_pcap(pcap_t *pd, u8 *sendermac,
struct sockaddr_in6 *senderIP, long to_usec,
struct timeval *rcvdtime,
struct timeval *rcvdtime, bool *has_mac,
void (*traceArp_callback)(int, const u8 *, u32 , struct timeval *));
/* Attempts to read one IP packet from the pcap descriptor pd. Input parameters are pd,