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.

113 lines
3.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/ebtables/ebtables-struct-ethhdr.patch
  5. # Copyright (C) 2014 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. From 94df0e94a42bf2c92c0fa62b9429e2e833eef952 Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <chris@opensde.org>
  18. Date: Mon, 28 Apr 2014 02:32:37 +0200
  19. Subject: fix redefinition of struct ethhdr
  20. Resort headers so <netinet/if_ether.h> gets before <linux/if_ether.h> to
  21. avoid redefinition of struct ethhdr.
  22. ---
  23. extensions/ebt_among.c | 5 +++--
  24. extensions/ebt_arpreply.c | 3 ++-
  25. extensions/ebt_nat.c | 3 ++-
  26. useful_functions.c | 5 +++--
  27. 4 files changed, 10 insertions(+), 6 deletions(-)
  28. diff --git a/extensions/ebt_among.c b/extensions/ebt_among.c
  29. index f97d07e..b57b2ad 100644
  30. --- a/extensions/ebt_among.c
  31. +++ b/extensions/ebt_among.c
  32. @@ -12,15 +12,16 @@
  33. #include <getopt.h>
  34. #include <ctype.h>
  35. #include <unistd.h>
  36. -#include "../include/ebtables_u.h"
  37. #include <netinet/ether.h>
  38. -#include "../include/ethernetdb.h"
  39. #include <linux/if_ether.h>
  40. #include <linux/netfilter_bridge/ebt_among.h>
  41. #include <sys/mman.h>
  42. #include <sys/stat.h>
  43. #include <fcntl.h>
  44. +#include "../include/ebtables_u.h"
  45. +#include "../include/ethernetdb.h"
  46. +
  47. #define AMONG_DST '1'
  48. #define AMONG_SRC '2'
  49. #define AMONG_DST_F '3'
  50. diff --git a/extensions/ebt_arpreply.c b/extensions/ebt_arpreply.c
  51. index c3757f3..a1b3503 100644
  52. --- a/extensions/ebt_arpreply.c
  53. +++ b/extensions/ebt_arpreply.c
  54. @@ -11,10 +11,11 @@
  55. #include <stdlib.h>
  56. #include <string.h>
  57. #include <getopt.h>
  58. -#include "../include/ebtables_u.h"
  59. #include <netinet/ether.h>
  60. #include <linux/netfilter_bridge/ebt_arpreply.h>
  61. +#include "../include/ebtables_u.h"
  62. +
  63. static int mac_supplied;
  64. #define REPLY_MAC '1'
  65. diff --git a/extensions/ebt_nat.c b/extensions/ebt_nat.c
  66. index e6afbf8..ae9c9bb 100644
  67. --- a/extensions/ebt_nat.c
  68. +++ b/extensions/ebt_nat.c
  69. @@ -10,10 +10,11 @@
  70. #include <stdlib.h>
  71. #include <string.h>
  72. #include <getopt.h>
  73. -#include "../include/ebtables_u.h"
  74. #include <netinet/ether.h>
  75. #include <linux/netfilter_bridge/ebt_nat.h>
  76. +#include "../include/ebtables_u.h"
  77. +
  78. static int to_source_supplied, to_dest_supplied;
  79. #define NAT_S '1'
  80. diff --git a/useful_functions.c b/useful_functions.c
  81. index d20b68e..b305ff5 100644
  82. --- a/useful_functions.c
  83. +++ b/useful_functions.c
  84. @@ -22,8 +22,6 @@
  85. * along with this program; if not, write to the Free Software
  86. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  87. */
  88. -#include "include/ebtables_u.h"
  89. -#include "include/ethernetdb.h"
  90. #include <stdio.h>
  91. #include <netinet/ether.h>
  92. #include <string.h>
  93. @@ -34,6 +32,9 @@
  94. #include <sys/socket.h>
  95. #include <arpa/inet.h>
  96. +#include "include/ebtables_u.h"
  97. +#include "include/ethernetdb.h"
  98. +
  99. const unsigned char mac_type_unicast[ETH_ALEN] = {0,0,0,0,0,0};
  100. const unsigned char msk_type_unicast[ETH_ALEN] = {1,0,0,0,0,0};
  101. const unsigned char mac_type_multicast[ETH_ALEN] = {1,0,0,0,0,0};
  102. --
  103. 1.7.2.3