• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/iproute2/iproute2-01-optional-ipv6.patch
Gustavo ZacariasGustavo Zacarias committed 382143fc70d02 Dec 2013
Raw file
Source viewDiff to previous
 
1
[PATCH] fix build on uClibc without IPv6 support
2
​
3
Disable IPv6 support code when building with uClibc configured without IPv6
4
support.
5
​
6
[Gustavo: update for iproute2 3.10.0]
7
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
8
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9
​
10
diff -Nura iproute2-3.10.0.orig/ip/ip6tunnel.c iproute2-3.10.0/ip/ip6tunnel.c
11
--- iproute2-3.10.0.orig/ip/ip6tunnel.c 2013-08-14 09:17:56.538089916 -0300
12
+++ iproute2-3.10.0/ip/ip6tunnel.c  2013-08-14 09:18:02.952298534 -0300
13
@@ -20,6 +20,10 @@
14
  * Masahide NAKAMURA @USAGI
15
  */
16
​
17
+#include <features.h>
18
+#if defined(__UCLIBC__) && !defined (__UCLIBC_HAS_IPV6__)
19
+#else
20
+
21
 #include <stdio.h>
22
 #include <string.h>
23
 #include <stdlib.h>
24
@@ -425,3 +429,5 @@
25
    fprintf(stderr, "Command \"%s\" is unknown, try \"ip -f inet6 tunnel help\".\n", *argv);
26
    exit(-1);
27
 }
28
+
29
+#endif /* no ipv6 */
30
diff -Nura iproute2-3.10.0.orig/ip/ipprefix.c iproute2-3.10.0/ip/ipprefix.c
31
--- iproute2-3.10.0.orig/ip/ipprefix.c  2013-08-14 09:17:56.539089949 -0300
32
+++ iproute2-3.10.0/ip/ipprefix.c   2013-08-14 09:19:29.065099291 -0300
33
@@ -23,11 +23,18 @@
34
  * Masahide NAKAMURA @USAGI
35
  */
36
​
37
+#include <features.h>
38
+#if defined(__UCLIBC__) && !defined (__UCLIBC_HAS_IPV6__)
39
+#define NO_IPV6
40
+#endif
41
+
42
 #include <stdio.h>
43
 #include <stdlib.h>
44
 #include <string.h>
45
 #include <sys/socket.h>
46
+#ifndef NO_IPV6
47
 #include <netinet/icmp6.h>
48
+#endif
49
​
50
 #include "utils.h"
51
 #include "ip_common.h"
52
@@ -65,10 +72,12 @@
53
        fprintf(stderr, "incorrect protocol family: %d\n", prefix->prefix_family);
54
        return 0;
55
    }
56
+#ifdef ND_OPT_PREFIX_INFORMATION
57
    if (prefix->prefix_type != ND_OPT_PREFIX_INFORMATION) {
58
        fprintf(stderr, "wrong ND type %d\n", prefix->prefix_type);
59
        return 0;
60
    }
61
+#endif
62
​
63
    parse_rtattr(tb, RTA_MAX, RTM_RTA(prefix), len);
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.