tags 391601 + patch
thanks

Suggested fix has been tested an works for me too.... 

> From: Remi Denis-Courmont <[EMAIL PROTECTED]>
> To: Noah Meyerhans <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: Bug#391601: ping6: unusable if built from source
> Date: Sat, 7 Oct 2006 21:09:36 +0300

> Indeed, putting IPV6_RECVHOPLIMIT instead of IPV6_HOPLIMIT at 
> ping6.c:485 seems to solve the problem.


Here's the patch in unified diff format:


diff -u iputils-20020927/ping6.c iputils-fixed/ping6.c
--- iputils-20020927/ping6.c    2006-10-10 15:12:13.000000000 +0200
+++ iputils-fixed/ping6.c       2006-10-10 15:11:44.000000000 +0200
@@ -482,7 +482,7 @@
 
        if (1) {
                int on = 1;
-               if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_HOPLIMIT,
+               if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
                               &on, sizeof(on)) == -1) {
                        perror ("can't receive hop limit");
                        exit(2);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to