Re: IPv6 Support in Owl
"Simon Baker" <[email protected]>
| Newsgroups | gmane.linux.openwall.user |
|---|---|
| Organization | The Kaizo Organisation |
| Message-ID | <[email protected]> |
On Thu, 10 Dec 2009 17:37:03 -0000, <[email protected]> wrote: > On 10-Dec-2009 15:13:45 -0000, Simon Baker wrote: > > > Since I've upgraded one of my machines (running IPv6 natively) > > I've hit a strange issue, whereby I can no long ping6 or > > tracepath6 to hosts: > > tachikoma!simonb:/usr/src/kernel$ ping6 hobo.kaizo.org > > can't receive hop limit: Protocol not available > > Similar errors occur when trying to run tracepath6 as well: > > tachikoma!simonb:/usr/src/kernel$ tracepath6 hobo.kaizo.org > > IPV6_HOPLIMIT: Protocol not available > > gremlin@owl-test:~ > zcat /proc/config.gz | grep IPV6 > # CONFIG_IPV6 is not set Hiya, I already have IPv6 in my kernel, indeed it's actually all working fine ; I can create and accept IPv6 connections with no problems. traceroute6 for example actually works fine: traceroute to k.kaizo.org (2001:470:103:68::2), 30 hops max, 40 byte packets 1 section9.kaizo.org (2001:470:944b:abcd::225) 0.298 ms 0.117 ms 0.119 ms 2 spbkaizo-1.tunnel.tserv5.lon1.ipv6.he.net (2001:470:1f08:514::1) 17.652 ms 21.689 ms 20.913 ms 3 gige-g4-6.core1.lon1.he.net (2001:470:0:67::1) 22.327 ms 21.376 ms 28.828 ms 4 10gigabitethernet2-3.core1.nyc4.he.net (2001:470:0:3e::1) 91.110 ms 90.114 ms 2001:470:0:128::1 (2001:470:0:128::1) 86.620 ms 5 10gigabitethernet1-2.core1.chi1.he.net (2001:470:0:4e::1) 136.391 ms 135.493 ms 134.498 ms 6 2001:470:1:35::2 (2001:470:1:35::2) 111.786 ms 110.791 ms 114.876 ms 7 k.kaizo.org (2001:470:103:68::2) 113.879 ms 112.886 ms 111.908 ms It's simply ping6 and tracepath6 that are broken. The attached iputils.spec and diff fix this issue. Regards, Simon. -- -- To unsubscribe, e-mail [email protected] and reply to the automated confirmation request that will be sent to you.
iputils-ss020927-owl-ipv6.diff
(application/octet-stream, 1.2 KB)
diff -uNr iputils.orig/ping6.c iputils/ping6.c
--- iputils.orig/ping6.c 2002-09-20 16:08:11 +0100
+++ iputils/ping6.c 2009-12-10 18:12:49 +0000
@@ -483,7 +483,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);
@@ -701,7 +701,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 -uNr iputils.orig/tracepath6.c iputils/tracepath6.c
--- iputils.orig/tracepath6.c 2001-09-02 03:03:46 +0100
+++ iputils/tracepath6.c 2009-12-10 18:08:44 +0000
@@ -111,7 +111,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) {
iputils.spec
(application/octet-stream, 5 KB) - not displayed