mirror of the now-defunct rocklinux.org
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.

221 lines
6.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/dietlibc/pkg_patch/pkg_iproute2.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./include/rt_names.h.orig 2003-04-06 17:07:44.000000000 +0200
  20. +++ ./include/rt_names.h 2003-04-06 17:07:52.000000000 +0200
  21. @@ -1,6 +1,8 @@
  22. #ifndef RT_NAMES_H_
  23. #define RT_NAMES_H_ 1
  24. +#include <asm/types.h>
  25. +
  26. const char* rtnl_rtprot_n2a(int id, char *buf, int len);
  27. const char* rtnl_rtscope_n2a(int id, char *buf, int len);
  28. const char* rtnl_rttable_n2a(int id, char *buf, int len);
  29. --- ./include-glibc/netinet/ip.h.orig 2003-04-06 17:20:41.000000000 +0200
  30. +++ ./include-glibc/netinet/ip.h 2003-04-06 17:23:28.000000000 +0200
  31. @@ -1,3 +1,5 @@
  32. +#include_next <netinet/ip.h>
  33. +#if 0
  34. #ifndef __NETINET_IP_H
  35. #define __NETINET_IP_H 1
  36. @@ -7,3 +9,4 @@
  37. #include <linux/ip.h>
  38. #endif /* netinet/ip.h */
  39. +#endif
  40. --- ./ip/ipaddress.c.orig 2001-08-23 06:07:46.000000000 +0200
  41. +++ ./ip/ipaddress.c 2003-04-06 17:05:14.000000000 +0200
  42. @@ -20,8 +20,9 @@
  43. #include <sys/ioctl.h>
  44. #include <sys/socket.h>
  45. #include <sys/ioctl.h>
  46. -#include <linux/netdevice.h>
  47. -#include <linux/if_arp.h>
  48. +// #include <linux/netdevice.h>
  49. +#include <net/if.h>
  50. +#include <net/if_arp.h>
  51. #include <linux/sockios.h>
  52. #include <netinet/in.h>
  53. #include <arpa/inet.h>
  54. @@ -33,6 +34,39 @@
  55. #include "ll_map.h"
  56. #include "ip_common.h"
  57. +struct net_device_stats
  58. +{
  59. + unsigned long rx_packets; /* total packets received */
  60. + unsigned long tx_packets; /* total packets transmitted */
  61. + unsigned long rx_bytes; /* total bytes received */
  62. + unsigned long tx_bytes; /* total bytes transmitted */
  63. + unsigned long rx_errors; /* bad packets received */
  64. + unsigned long tx_errors; /* packet transmit problems */
  65. + unsigned long rx_dropped; /* no space in linux buffers */
  66. + unsigned long tx_dropped; /* no space available in linux */
  67. + unsigned long multicast; /* multicast packets received */
  68. + unsigned long collisions;
  69. +
  70. + /* detailed rx_errors: */
  71. + unsigned long rx_length_errors;
  72. + unsigned long rx_over_errors; /* receiver ring buff overflow */
  73. + unsigned long rx_crc_errors; /* recved pkt with crc error */
  74. + unsigned long rx_frame_errors; /* recv'd frame alignment error */
  75. + unsigned long rx_fifo_errors; /* recv'r fifo overrun */
  76. + unsigned long rx_missed_errors; /* receiver missed packet */
  77. +
  78. + /* detailed tx_errors */
  79. + unsigned long tx_aborted_errors;
  80. + unsigned long tx_carrier_errors;
  81. + unsigned long tx_fifo_errors;
  82. + unsigned long tx_heartbeat_errors;
  83. + unsigned long tx_window_errors;
  84. +
  85. + /* for cslip etc */
  86. + unsigned long rx_compressed;
  87. + unsigned long tx_compressed;
  88. +};
  89. +
  90. static struct
  91. {
  92. int ifindex;
  93. --- ./ip/iptunnel.c.orig 2003-04-06 17:08:43.000000000 +0200
  94. +++ ./ip/iptunnel.c 2003-04-06 17:09:17.000000000 +0200
  95. @@ -30,4 +30,5 @@
  96. #include <sys/ioctl.h>
  97. +#include <asm/byteorder.h>
  98. #include <linux/if.h>
  99. #include <linux/if_arp.h>
  100. #include <netinet/in.h>
  101. --- ./ip/iplink.c.orig 2003-04-06 17:09:55.000000000 +0200
  102. +++ ./ip/iplink.c 2003-04-06 17:10:04.000000000 +0200
  103. @@ -10,6 +10,9 @@
  104. *
  105. */
  106. +#define _LINUX_TYPES_H
  107. +#include <asm/types.h>
  108. +
  109. #include <stdio.h>
  110. #include <stdlib.h>
  111. #include <unistd.h>
  112. --- ./ip/ipmaddr.c.orig 2003-04-06 17:14:25.000000000 +0200
  113. +++ ./ip/ipmaddr.c 2003-04-06 17:14:31.000000000 +0200
  114. @@ -10,6 +10,9 @@
  115. *
  116. */
  117. +#define _LINUX_TYPES_H
  118. +#include <asm/types.h>
  119. +
  120. #include <stdio.h>
  121. #include <stdlib.h>
  122. #include <unistd.h>
  123. --- ./ip/ipmroute.c.orig 2003-04-06 17:14:38.000000000 +0200
  124. +++ ./ip/ipmroute.c 2003-04-06 17:14:43.000000000 +0200
  125. @@ -10,6 +10,9 @@
  126. *
  127. */
  128. +#define _LINUX_TYPES_H
  129. +#include <asm/types.h>
  130. +
  131. #include <stdio.h>
  132. #include <stdlib.h>
  133. #include <unistd.h>
  134. --- ./lib/rt_names.c.orig 2000-04-16 19:42:52.000000000 +0200
  135. +++ ./lib/rt_names.c 2003-04-06 11:36:43.000000000 +0200
  136. @@ -16,6 +16,7 @@
  137. #include <fcntl.h>
  138. #include <string.h>
  139. #include <sys/time.h>
  140. +#include <asm/types.h>
  141. static void rtnl_tab_initialize(char *file, char **tab, int size)
  142. {
  143. --- ./lib/utils.c.orig 2001-08-24 19:09:54.000000000 +0200
  144. +++ ./lib/utils.c 2003-04-06 11:36:43.000000000 +0200
  145. @@ -25,6 +25,7 @@
  146. #include <netdb.h>
  147. #include <arpa/inet.h>
  148. #include <resolv.h>
  149. +#include <asm/types.h>
  150. #include <linux/pkt_sched.h>
  151. #include "utils.h"
  152. --- ./lib/ll_addr.c.orig 2000-04-16 19:42:52.000000000 +0200
  153. +++ ./lib/ll_addr.c 2003-04-06 11:36:43.000000000 +0200
  154. @@ -17,8 +17,8 @@
  155. #include <sys/ioctl.h>
  156. #include <sys/socket.h>
  157. #include <sys/ioctl.h>
  158. -#include <linux/netdevice.h>
  159. -#include <linux/if_arp.h>
  160. +//#include <linux/netdevice.h>
  161. +#include <net/if_arp.h>
  162. #include <linux/sockios.h>
  163. #include <netinet/in.h>
  164. #include <arpa/inet.h>
  165. --- ./lib/ll_proto.c.orig 2001-08-02 04:41:41.000000000 +0200
  166. +++ ./lib/ll_proto.c 2003-04-06 11:36:43.000000000 +0200
  167. @@ -17,8 +17,9 @@
  168. #include <sys/ioctl.h>
  169. #include <sys/socket.h>
  170. #include <sys/ioctl.h>
  171. -#include <linux/netdevice.h>
  172. -#include <linux/if_arp.h>
  173. +//#include <linux/netdevice.h>
  174. +#include <net/if_arp.h>
  175. +#include <net/if_ether.h>
  176. #include <linux/sockios.h>
  177. #include <netinet/in.h>
  178. #include <arpa/inet.h>
  179. --- ./lib/ll_types.c.orig 2001-08-02 05:18:33.000000000 +0200
  180. +++ ./lib/ll_types.c 2003-04-06 11:36:43.000000000 +0200
  181. @@ -17,8 +17,8 @@
  182. #include <sys/ioctl.h>
  183. #include <sys/socket.h>
  184. #include <sys/ioctl.h>
  185. -#include <linux/netdevice.h>
  186. -#include <linux/if_arp.h>
  187. +//#include <linux/netdevice.h>
  188. +#include <net/if_arp.h>
  189. #include <linux/sockios.h>
  190. #include <netinet/in.h>
  191. #include <arpa/inet.h>
  192. --- ./Makefile.orig Fri Sep 5 14:30:17 2003
  193. +++ ./Makefile Fri Sep 5 14:37:24 2003
  194. @@ -5,7 +5,7 @@
  195. DEFINES= -DRESOLVE_HOSTNAMES
  196. #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
  197. -LDLIBS=-lresolv
  198. +LDLIBS=
  199. ADDLIB=
  200. #options if you compile with libc5, and without a bind>=4.9.4 libresolv
  201. @@ -33,7 +33,7 @@
  202. LDLIBS += -L../lib -lnetlink -lutil
  203. -SUBDIRS=lib ip tc misc
  204. +SUBDIRS=lib ip
  205. LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a