diff --git a/iputils/ping.h b/iputils/ping.h index 97a56ee261f2c99b4288950dc35558488592b7cf..1f3a06f4179f413eeeaca3f572e64f9cadd86526 100644 --- a/iputils/ping.h +++ b/iputils/ping.h @@ -8,6 +8,8 @@ #include <sys/socket.h> #include <linux/types.h> #include <linux/sockios.h> +#include <linux/ipv6.h> + #include <sys/file.h> #include <sys/time.h> #include <sys/ioctl.h> @@ -22,6 +24,7 @@ #include <asm/byteorder.h> #include <sched.h> #include <math.h> +#include <netinet/in.h> #include <netinet/ip.h> #include <netinet/ip6.h> #include <netinet/ip_icmp.h> diff --git a/iputils/ping6_common.c b/iputils/ping6_common.c index aa1ebc831d6c9c843bf12e9b85b647baabc6ac60..1cc0566c0c59e4f54755fac29fa109b6d11ec75a 100755 --- a/iputils/ping6_common.c +++ b/iputils/ping6_common.c @@ -57,6 +57,7 @@ * if -N option is used, this program has to run SUID to ROOT or * with net_cap_raw enabled. */ + #include "ping.h" ping_func_set_st ping6_func_set = {