Code

ccd54a0a6fd85fd85f9f5d7aad7ca6efad43e542
[pkg-liboping.git] / debian / patches / recvtos
1 --- a/src/liboping.c
2 +++ b/src/liboping.c
3 @@ -1540,10 +1540,12 @@
4                 {
5                         int opt;
6  
7 +#ifdef IP_RECVTOS
8                         /* Enable receiving the TOS field */
9                         opt = 1;
10                         setsockopt (ph->fd, IPPROTO_IP, IP_RECVTOS,
11                                         &opt, sizeof (opt));
12 +#endif /* IP_RECVTOS */
13  
14                         /* Enable receiving the TTL field */
15                         opt = 1;