From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/iproute2/files: iproute2-2.6.35-no-ipv6.patch |
Date: | Mon, 23 Aug 2010 02:29:27 |
Message-Id: | 20100823022922.EA6DD20051@flycatcher.gentoo.org |
1 | vapier 10/08/23 02:29:22 |
2 | |
3 | Added: iproute2-2.6.35-no-ipv6.patch |
4 | Log: |
5 | Allow people to disable ipv6 support #326849 by Pinkbyte. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sys-apps/iproute2/files/iproute2-2.6.35-no-ipv6.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/files/iproute2-2.6.35-no-ipv6.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/files/iproute2-2.6.35-no-ipv6.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: iproute2-2.6.35-no-ipv6.patch |
15 | =================================================================== |
16 | https://bugs.gentoo.org/326849 |
17 | |
18 | allow ipv6 to be disabled |
19 | |
20 | --- iproute2-2.6.31/ip/iptunnel.c |
21 | +++ iproute2-2.6.31/ip/iptunnel.c |
22 | @@ -456,13 +456,6 @@ int do_iptunnel(int argc, char **argv) |
23 | break; |
24 | case AF_INET: |
25 | break; |
26 | - /* |
27 | - * This is silly enough but we have no easy way to make it |
28 | - * protocol-independent because of unarranged structure between |
29 | - * IPv4 and IPv6. |
30 | - */ |
31 | - case AF_INET6: |
32 | - return do_ip6tunnel(argc, argv); |
33 | default: |
34 | fprintf(stderr, "Unsupported family:%d\n", preferred_family); |
35 | exit(-1); |
36 | --- iproute2-2.6.31/ip/Makefile |
37 | +++ iproute2-2.6.31/ip/Makefile |
38 | @@ -1,4 +1,4 @@ |
39 | IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o \ |
40 | - rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ |
41 | + rtm_map.o iptunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ |
42 | ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \ |