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.

179 lines
5.6 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/patches/pkg_iproute2.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. --- iproute2-2.6.9.orig/Makefile 2004-12-23 18:40:20.000000000 -0300
  18. +++ iproute2-2.6.9/Makefile 2004-12-23 18:45:12.000000000 -0300
  19. @@ -10,7 +10,7 @@
  20. DEFINES= -DRESOLVE_HOSTNAMES
  21. #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
  22. -LDLIBS=-lresolv
  23. +LDLIBS=-lcompat
  24. ADDLIB=
  25. #options for decnet
  26. @@ -26,7 +26,7 @@
  27. LDLIBS += -L../lib -lnetlink ../lib/libutil.a
  28. -SUBDIRS=lib ip tc misc netem
  29. +SUBDIRS=lib ip
  30. LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
  31. --- iproute2-2.6.9.orig/ip/ipaddress.c 2004-12-23 18:40:20.000000000 -0300
  32. +++ iproute2-2.6.9/ip/ipaddress.c 2004-12-23 18:50:12.000000000 -0300
  33. @@ -25,8 +25,9 @@
  34. #include <string.h>
  35. #include <fnmatch.h>
  36. -#include <linux/netdevice.h>
  37. -#include <linux/if_arp.h>
  38. +//#include <linux/netdevice.h>
  39. +#include <net/if.h>
  40. +#include <net/if_arp.h>
  41. #include <linux/sockios.h>
  42. #include "rt_names.h"
  43. @@ -34,6 +35,39 @@
  44. #include "ll_map.h"
  45. #include "ip_common.h"
  46. +struct net_device_stats
  47. +{
  48. + unsigned long rx_packets; /* total packets received */
  49. + unsigned long tx_packets; /* total packets transmitted */
  50. + unsigned long rx_bytes; /* total bytes received */
  51. + unsigned long tx_bytes; /* total bytes transmitted */
  52. + unsigned long rx_errors; /* bad packets received */
  53. + unsigned long tx_errors; /* packet transmit problems */
  54. + unsigned long rx_dropped; /* no space in linux buffers */
  55. + unsigned long tx_dropped; /* no space available in linux */
  56. + unsigned long multicast; /* multicast packets received */
  57. + unsigned long collisions;
  58. +
  59. + /* detailed rx_errors: */
  60. + unsigned long rx_length_errors;
  61. + unsigned long rx_over_errors; /* receiver ring buff overflow */
  62. + unsigned long rx_crc_errors; /* recved pkt with crc error */
  63. + unsigned long rx_frame_errors; /* recv'd frame alignment error */
  64. + unsigned long rx_fifo_errors; /* recv'r fifo overrun */
  65. + unsigned long rx_missed_errors; /* receiver missed packet */
  66. +
  67. + /* detailed tx_errors */
  68. + unsigned long tx_aborted_errors;
  69. + unsigned long tx_carrier_errors;
  70. + unsigned long tx_fifo_errors;
  71. + unsigned long tx_heartbeat_errors;
  72. + unsigned long tx_window_errors;
  73. +
  74. + /* for cslip etc */
  75. + unsigned long rx_compressed;
  76. + unsigned long tx_compressed;
  77. +};
  78. +
  79. static struct
  80. {
  81. int ifindex;
  82. --- iproute2-2.6.9.orig/ip/iplink.c 2004-12-23 18:40:20.000000000 -0300
  83. +++ iproute2-2.6.9/ip/iplink.c 2004-12-23 18:44:07.000000000 -0300
  84. @@ -10,6 +10,9 @@
  85. *
  86. */
  87. +#define _LINUX_TYPES_H
  88. +#include <asm/types.h>
  89. +
  90. #include <stdio.h>
  91. #include <stdlib.h>
  92. #include <unistd.h>
  93. --- iproute2-2.6.9.orig/ip/ipmaddr.c 2004-12-23 18:40:20.000000000 -0300
  94. +++ iproute2-2.6.9/ip/ipmaddr.c 2004-12-23 18:44:09.000000000 -0300
  95. @@ -10,6 +10,9 @@
  96. *
  97. */
  98. +#define _LINUX_TYPES_H
  99. +#include <asm/types.h>
  100. +
  101. #include <stdio.h>
  102. #include <stdlib.h>
  103. #include <unistd.h>
  104. --- iproute2-2.6.9.orig/ip/ipmroute.c 2004-12-23 18:40:20.000000000 -0300
  105. +++ iproute2-2.6.9/ip/ipmroute.c 2004-12-23 18:44:10.000000000 -0300
  106. @@ -10,6 +10,9 @@
  107. *
  108. */
  109. +#define _LINUX_TYPES_H
  110. +#include <asm/types.h>
  111. +
  112. #include <stdio.h>
  113. #include <stdlib.h>
  114. #include <unistd.h>
  115. --- iproute2-2.6.9.orig/ip/iptunnel.c 2004-12-23 18:40:20.000000000 -0300
  116. +++ iproute2-2.6.9/ip/iptunnel.c 2004-12-23 18:44:06.000000000 -0300
  117. @@ -16,6 +16,9 @@
  118. * Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
  119. */
  120. +#define _LINUX_TYPES_H
  121. +#include <asm/byteorder.h>
  122. +
  123. #include <stdio.h>
  124. #include <stdlib.h>
  125. #include <string.h>
  126. --- iproute2-2.6.9.orig/lib/ll_addr.c 2004-12-23 18:40:20.000000000 -0300
  127. +++ iproute2-2.6.9/lib/ll_addr.c 2004-12-23 18:52:29.000000000 -0300
  128. @@ -21,8 +21,8 @@
  129. #include <arpa/inet.h>
  130. #include <string.h>
  131. -#include <linux/netdevice.h>
  132. -#include <linux/if_arp.h>
  133. +//#include <linux/netdevice.h>
  134. +#include <net/if_arp.h>
  135. #include <linux/sockios.h>
  136. #include "rt_names.h"
  137. --- iproute2-2.6.9.orig/lib/ll_proto.c 2004-12-23 18:40:20.000000000 -0300
  138. +++ iproute2-2.6.9/lib/ll_proto.c 2004-12-23 18:53:32.000000000 -0300
  139. @@ -21,8 +21,9 @@
  140. #include <arpa/inet.h>
  141. #include <string.h>
  142. -#include <linux/netdevice.h>
  143. -#include <linux/if_arp.h>
  144. +//#include <linux/netdevice.h>
  145. +#include <net/if_arp.h>
  146. +#include <net/if_ether.h>
  147. #include <linux/sockios.h>
  148. #include "utils.h"
  149. --- iproute2-2.6.9.orig/lib/ll_types.c 2004-12-23 18:40:20.000000000 -0300
  150. +++ iproute2-2.6.9/lib/ll_types.c 2004-12-23 18:54:26.000000000 -0300
  151. @@ -21,8 +21,8 @@
  152. #include <arpa/inet.h>
  153. #include <string.h>
  154. -#include <linux/netdevice.h>
  155. -#include <linux/if_arp.h>
  156. +//#include <linux/netdevice.h>
  157. +#include <net/if_arp.h>
  158. #include <linux/sockios.h>
  159. #include "rt_names.h"