OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
3.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/iptables/0001-musl-fixes.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- iptables-1.4.12.1.o/extensions/libip6t_ipv6header.c
  17. +++ iptables-1.4.12.1/extensions/libip6t_ipv6header.c
  18. @@ -10,6 +10,9 @@
  19. #include <netdb.h>
  20. #include <xtables.h>
  21. #include <linux/netfilter_ipv6/ip6t_ipv6header.h>
  22. +#ifndef IPPROTO_HOPOPTS
  23. +# define IPPROTO_HOPOPTS 0
  24. +#endif
  25. enum {
  26. O_HEADER = 0,
  27. --- iptables-1.4.12.1.o/extensions/libxt_TCPOPTSTRIP.c
  28. +++ iptables-1.4.12.1/extensions/libxt_TCPOPTSTRIP.c
  29. @@ -12,6 +12,21 @@
  30. #ifndef TCPOPT_MD5SIG
  31. # define TCPOPT_MD5SIG 19
  32. #endif
  33. +#ifndef TCPOPT_MAXSEG
  34. +# define TCPOPT_MAXSEG 2
  35. +#endif
  36. +#ifndef TCPOPT_WINDOW
  37. +# define TCPOPT_WINDOW 3
  38. +#endif
  39. +#ifndef TCPOPT_SACK_PERMITTED
  40. +# define TCPOPT_SACK_PERMITTED 4
  41. +#endif
  42. +#ifndef TCPOPT_SACK
  43. +# define TCPOPT_SACK 5
  44. +#endif
  45. +#ifndef TCPOPT_TIMESTAMP
  46. +# define TCPOPT_TIMESTAMP 8
  47. +#endif
  48. enum {
  49. O_STRIP_OPTION = 0,
  50. --- iptables-1.4.12.1.o/include/libiptc/ipt_kernel_headers.h
  51. +++ iptables-1.4.12.1/include/libiptc/ipt_kernel_headers.h
  52. @@ -5,7 +5,6 @@
  53. #include <limits.h>
  54. -#if defined(__GLIBC__) && __GLIBC__ == 2
  55. #include <netinet/ip.h>
  56. #include <netinet/in.h>
  57. #include <netinet/ip_icmp.h>
  58. @@ -13,15 +12,4 @@
  59. #include <netinet/udp.h>
  60. #include <net/if.h>
  61. #include <sys/types.h>
  62. -#else /* libc5 */
  63. -#include <sys/socket.h>
  64. -#include <linux/ip.h>
  65. -#include <linux/in.h>
  66. -#include <linux/if.h>
  67. -#include <linux/icmp.h>
  68. -#include <linux/tcp.h>
  69. -#include <linux/udp.h>
  70. -#include <linux/types.h>
  71. -#include <linux/in6.h>
  72. -#endif
  73. #endif
  74. --- iptables-1.4.12.1.o/include/linux/netfilter_ipv4/ip_tables.h
  75. +++ iptables-1.4.12.1/include/linux/netfilter_ipv4/ip_tables.h
  76. @@ -16,6 +16,7 @@
  77. #define _IPTABLES_H
  78. #include <linux/types.h>
  79. +#include <sys/types.h>
  80. #include <linux/netfilter_ipv4.h>
  81. --- iptables-1.4.12.1.o/iptables/ip6tables-restore.c
  82. +++ iptables-1.4.12.1/iptables/ip6tables-restore.c
  83. @@ -9,7 +9,7 @@
  84. */
  85. #include <getopt.h>
  86. -#include <sys/errno.h>
  87. +#include <errno.h>
  88. #include <stdbool.h>
  89. #include <string.h>
  90. #include <stdio.h>
  91. --- iptables-1.4.12.1.o/iptables/ip6tables-save.c
  92. +++ iptables-1.4.12.1/iptables/ip6tables-save.c
  93. @@ -6,7 +6,7 @@
  94. * This code is distributed under the terms of GNU GPL v2
  95. */
  96. #include <getopt.h>
  97. -#include <sys/errno.h>
  98. +#include <errno.h>
  99. #include <stdio.h>
  100. #include <fcntl.h>
  101. #include <stdlib.h>
  102. --- iptables-1.4.12.1.o/iptables/iptables-restore.c
  103. +++ iptables-1.4.12.1/iptables/iptables-restore.c
  104. @@ -6,7 +6,7 @@
  105. */
  106. #include <getopt.h>
  107. -#include <sys/errno.h>
  108. +#include <errno.h>
  109. #include <stdbool.h>
  110. #include <string.h>
  111. #include <stdio.h>
  112. --- iptables-1.4.12.1.o/iptables/iptables-save.c
  113. +++ iptables-1.4.12.1/iptables/iptables-save.c
  114. @@ -6,7 +6,7 @@
  115. *
  116. */
  117. #include <getopt.h>
  118. -#include <sys/errno.h>
  119. +#include <errno.h>
  120. #include <stdio.h>
  121. #include <fcntl.h>
  122. #include <stdlib.h>
  123. --- iptables-1.4.12.1.o/iptables/iptables-xml.c
  124. +++ iptables-1.4.12.1/iptables/iptables-xml.c
  125. @@ -7,7 +7,7 @@
  126. */
  127. #include <getopt.h>
  128. -#include <sys/errno.h>
  129. +#include <errno.h>
  130. #include <string.h>
  131. #include <stdio.h>
  132. #include <stdlib.h>