ALT Linux Bugzilla
– Attachment 2359 Details for
Bug 13916
ping6 & tracepath6 не работают даже от root
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
fixing patch
iputils-20020927-alt-hoplimit.patch (text/plain), 1.39 KB, created by
Denis Ovsienko
on 2008-01-07 13:54:49 MSK
(
hide
)
Description:
fixing patch
Filename:
MIME Type:
Creator:
Denis Ovsienko
Created:
2008-01-07 13:54:49 MSK
Size:
1.39 KB
patch
obsolete
>diff -Nur iputils.p8/ping6.c iputils/ping6.c >--- iputils.p8/ping6.c 2008-01-07 13:24:25 +0300 >+++ iputils/ping6.c 2008-01-07 13:28:47 +0300 >@@ -486,7 +486,7 @@ > > if (1) { > int on = 1; >- if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_HOPLIMIT, >+ if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_2292HOPLIMIT, > &on, sizeof(on)) == -1) { > perror ("can't receive hop limit"); > exit(2); >@@ -704,7 +704,7 @@ > > for (c = CMSG_FIRSTHDR(msg); c; c = CMSG_NXTHDR(msg, c)) { > if (c->cmsg_level != SOL_IPV6 || >- c->cmsg_type != IPV6_HOPLIMIT) >+ c->cmsg_type != IPV6_2292HOPLIMIT) > continue; > if (c->cmsg_len < CMSG_LEN(sizeof(int))) > continue; >diff -Nur iputils.p8/tracepath6.c iputils/tracepath6.c >--- iputils.p8/tracepath6.c 2008-01-07 13:24:25 +0300 >+++ iputils/tracepath6.c 2008-01-07 13:29:59 +0300 >@@ -113,7 +113,7 @@ > if (cmsg->cmsg_level == SOL_IPV6) { > if (cmsg->cmsg_type == IPV6_RECVERR) { > e = (struct sock_extended_err *)CMSG_DATA(cmsg); >- } else if (cmsg->cmsg_type == IPV6_HOPLIMIT) { >+ } else if (cmsg->cmsg_type == IPV6_2292HOPLIMIT) { > rethops = *(int*)CMSG_DATA(cmsg); > } > } else if (cmsg->cmsg_level == SOL_IP) { >@@ -359,7 +359,7 @@ > perror("IP_RECVERR"); > exit(1); > } >- if (setsockopt(fd, SOL_IPV6, IPV6_HOPLIMIT, &on, sizeof(on))) { >+ if (setsockopt(fd, SOL_IPV6, IPV6_2292HOPLIMIT, &on, sizeof(on))) { > perror("IPV6_HOPLIMIT"); > exit(1); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13916
:
2358
| 2359