7 +#include <sys/types.h>
9 #include <sys/socket.h>
10 #include <linux/sockios.h>
12 #include <sys/ioctl.h>
15 -#include <sys/poll.h>
28 #define DEFDATALEN (64 - 8) /* default data length */
30 #define MAXWAIT 10 /* max seconds to wait for response */
34 #include <netinet/in.h>
35 #include <netinet/ip.h>
36 #include <netinet/ip_icmp.h>
38 -#include <protocols/timed.h>
41 #include <arpa/inet.h>
47 #include <sys/socket.h>
48 +#include <sys/time.h>
49 #include <linux/types.h>
50 #include <linux/errqueue.h>
54 @@ -661,8 +661,15 @@ int send_probe()
57 static struct iovec iov = {outpack, 0};
58 - static struct msghdr m = { &whereto, sizeof(whereto),
59 - &iov, 1, &cmsg, 0, 0 };
60 + static struct msghdr m = {
61 + .msg_name = &whereto,
62 + .msg_namelen = sizeof(whereto),
65 + .msg_control = &cmsg,
66 + .msg_controllen = 0,
69 m.msg_controllen = cmsg_len;