31 lines
964 B
Text
31 lines
964 B
Text
|
Index: boreas/alivedetection.c
|
||
|
--- boreas/alivedetection.c.orig
|
||
|
+++ boreas/alivedetection.c
|
||
|
@@ -31,15 +31,13 @@
|
||
|
#include <arpa/inet.h>
|
||
|
#include <errno.h>
|
||
|
#include <ifaddrs.h> /* for getifaddrs() */
|
||
|
-#include <net/ethernet.h>
|
||
|
-#include <net/if.h> /* for if_nametoindex() */
|
||
|
-#include <net/if_arp.h>
|
||
|
+
|
||
|
#include <netinet/icmp6.h>
|
||
|
#include <netinet/ip.h>
|
||
|
#include <netinet/ip6.h>
|
||
|
#include <netinet/ip_icmp.h>
|
||
|
#include <netinet/tcp.h>
|
||
|
-#include <netpacket/packet.h> /* for sockaddr_ll */
|
||
|
+
|
||
|
#include <pcap.h>
|
||
|
#include <pthread.h>
|
||
|
#include <stdlib.h>
|
||
|
@@ -290,7 +288,7 @@ scan (alive_test_t alive_test)
|
||
|
gettimeofday (&end_time, NULL);
|
||
|
|
||
|
g_message ("Alive scan %s finished in %ld seconds: %d alive hosts of %d.",
|
||
|
- scan_id, end_time.tv_sec - start_time.tv_sec,
|
||
|
+ scan_id, end_time.tv_usec - start_time.tv_usec,
|
||
|
g_hash_table_size (scanner.hosts_data->alivehosts),
|
||
|
number_of_targets);
|
||
|
g_free (scan_id);
|