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.

238 lines
7.3 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/in.h.orig 2003-04-06 17:20:23.000000000 +0200
  30. +++ ./include-glibc/netinet/in.h 2003-04-06 17:23:23.000000000 +0200
  31. @@ -1,3 +1,5 @@
  32. +#include_next <netinet/in.h>
  33. +#if 0
  34. #ifndef _NETINET_IN_H
  35. #define _NETINET_IN_H 1
  36. @@ -12,3 +14,4 @@
  37. #define SOL_IP 0
  38. #endif /* netinet/in.h */
  39. +#endif
  40. --- ./include-glibc/netinet/ip.h.orig 2003-04-06 17:20:41.000000000 +0200
  41. +++ ./include-glibc/netinet/ip.h 2003-04-06 17:23:28.000000000 +0200
  42. @@ -1,3 +1,5 @@
  43. +#include_next <netinet/ip.h>
  44. +#if 0
  45. #ifndef __NETINET_IP_H
  46. #define __NETINET_IP_H 1
  47. @@ -7,3 +9,4 @@
  48. #include <linux/ip.h>
  49. #endif /* netinet/ip.h */
  50. +#endif
  51. --- ./ip/ipaddress.c.orig 2001-08-23 06:07:46.000000000 +0200
  52. +++ ./ip/ipaddress.c 2003-04-06 17:05:14.000000000 +0200
  53. @@ -20,8 +20,9 @@
  54. #include <sys/ioctl.h>
  55. #include <sys/socket.h>
  56. #include <sys/ioctl.h>
  57. -#include <linux/netdevice.h>
  58. -#include <linux/if_arp.h>
  59. +// #include <linux/netdevice.h>
  60. +#include <net/if.h>
  61. +#include <net/if_arp.h>
  62. #include <linux/sockios.h>
  63. #include <netinet/in.h>
  64. #include <arpa/inet.h>
  65. @@ -33,6 +34,39 @@
  66. #include "ll_map.h"
  67. #include "ip_common.h"
  68. +struct net_device_stats
  69. +{
  70. + unsigned long rx_packets; /* total packets received */
  71. + unsigned long tx_packets; /* total packets transmitted */
  72. + unsigned long rx_bytes; /* total bytes received */
  73. + unsigned long tx_bytes; /* total bytes transmitted */
  74. + unsigned long rx_errors; /* bad packets received */
  75. + unsigned long tx_errors; /* packet transmit problems */
  76. + unsigned long rx_dropped; /* no space in linux buffers */
  77. + unsigned long tx_dropped; /* no space available in linux */
  78. + unsigned long multicast; /* multicast packets received */
  79. + unsigned long collisions;
  80. +
  81. + /* detailed rx_errors: */
  82. + unsigned long rx_length_errors;
  83. + unsigned long rx_over_errors; /* receiver ring buff overflow */
  84. + unsigned long rx_crc_errors; /* recved pkt with crc error */
  85. + unsigned long rx_frame_errors; /* recv'd frame alignment error */
  86. + unsigned long rx_fifo_errors; /* recv'r fifo overrun */
  87. + unsigned long rx_missed_errors; /* receiver missed packet */
  88. +
  89. + /* detailed tx_errors */
  90. + unsigned long tx_aborted_errors;
  91. + unsigned long tx_carrier_errors;
  92. + unsigned long tx_fifo_errors;
  93. + unsigned long tx_heartbeat_errors;
  94. + unsigned long tx_window_errors;
  95. +
  96. + /* for cslip etc */
  97. + unsigned long rx_compressed;
  98. + unsigned long tx_compressed;
  99. +};
  100. +
  101. static struct
  102. {
  103. int ifindex;
  104. --- ./ip/iptunnel.c.orig 2003-04-06 17:08:43.000000000 +0200
  105. +++ ./ip/iptunnel.c 2003-04-06 17:09:17.000000000 +0200
  106. @@ -16,6 +16,9 @@
  107. * Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
  108. */
  109. +#define _LINUX_TYPES_H
  110. +#include <asm/types.h>
  111. +
  112. #include <stdio.h>
  113. #include <stdlib.h>
  114. #include <string.h>
  115. --- ./ip/iplink.c.orig 2003-04-06 17:09:55.000000000 +0200
  116. +++ ./ip/iplink.c 2003-04-06 17:10:04.000000000 +0200
  117. @@ -10,6 +10,9 @@
  118. *
  119. */
  120. +#define _LINUX_TYPES_H
  121. +#include <asm/types.h>
  122. +
  123. #include <stdio.h>
  124. #include <stdlib.h>
  125. #include <unistd.h>
  126. --- ./ip/ipmaddr.c.orig 2003-04-06 17:14:25.000000000 +0200
  127. +++ ./ip/ipmaddr.c 2003-04-06 17:14:31.000000000 +0200
  128. @@ -10,6 +10,9 @@
  129. *
  130. */
  131. +#define _LINUX_TYPES_H
  132. +#include <asm/types.h>
  133. +
  134. #include <stdio.h>
  135. #include <stdlib.h>
  136. #include <unistd.h>
  137. --- ./ip/ipmroute.c.orig 2003-04-06 17:14:38.000000000 +0200
  138. +++ ./ip/ipmroute.c 2003-04-06 17:14:43.000000000 +0200
  139. @@ -10,6 +10,9 @@
  140. *
  141. */
  142. +#define _LINUX_TYPES_H
  143. +#include <asm/types.h>
  144. +
  145. #include <stdio.h>
  146. #include <stdlib.h>
  147. #include <unistd.h>
  148. --- ./lib/rt_names.c.orig 2000-04-16 19:42:52.000000000 +0200
  149. +++ ./lib/rt_names.c 2003-04-06 11:36:43.000000000 +0200
  150. @@ -16,6 +16,7 @@
  151. #include <fcntl.h>
  152. #include <string.h>
  153. #include <sys/time.h>
  154. +#include <asm/types.h>
  155. static void rtnl_tab_initialize(char *file, char **tab, int size)
  156. {
  157. --- ./lib/utils.c.orig 2001-08-24 19:09:54.000000000 +0200
  158. +++ ./lib/utils.c 2003-04-06 11:36:43.000000000 +0200
  159. @@ -25,6 +25,7 @@
  160. #include <netdb.h>
  161. #include <arpa/inet.h>
  162. #include <resolv.h>
  163. +#include <asm/types.h>
  164. #include <linux/pkt_sched.h>
  165. #include "utils.h"
  166. --- ./lib/ll_addr.c.orig 2000-04-16 19:42:52.000000000 +0200
  167. +++ ./lib/ll_addr.c 2003-04-06 11:36:43.000000000 +0200
  168. @@ -17,8 +17,8 @@
  169. #include <sys/ioctl.h>
  170. #include <sys/socket.h>
  171. #include <sys/ioctl.h>
  172. -#include <linux/netdevice.h>
  173. -#include <linux/if_arp.h>
  174. +//#include <linux/netdevice.h>
  175. +#include <net/if_arp.h>
  176. #include <linux/sockios.h>
  177. #include <netinet/in.h>
  178. #include <arpa/inet.h>
  179. --- ./lib/ll_proto.c.orig 2001-08-02 04:41:41.000000000 +0200
  180. +++ ./lib/ll_proto.c 2003-04-06 11:36:43.000000000 +0200
  181. @@ -17,8 +17,9 @@
  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 <net/if_ether.h>
  190. #include <linux/sockios.h>
  191. #include <netinet/in.h>
  192. #include <arpa/inet.h>
  193. --- ./lib/ll_types.c.orig 2001-08-02 05:18:33.000000000 +0200
  194. +++ ./lib/ll_types.c 2003-04-06 11:36:43.000000000 +0200
  195. @@ -17,8 +17,8 @@
  196. #include <sys/ioctl.h>
  197. #include <sys/socket.h>
  198. #include <sys/ioctl.h>
  199. -#include <linux/netdevice.h>
  200. -#include <linux/if_arp.h>
  201. +//#include <linux/netdevice.h>
  202. +#include <net/if_arp.h>
  203. #include <linux/sockios.h>
  204. #include <netinet/in.h>
  205. #include <arpa/inet.h>
  206. --- ./Makefile.orig Fri Sep 5 14:30:17 2003
  207. +++ ./Makefile Fri Sep 5 14:37:24 2003
  208. @@ -5,7 +5,7 @@
  209. DEFINES= -DRESOLVE_HOSTNAMES
  210. #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
  211. -LDLIBS=-lresolv
  212. +LDLIBS=
  213. ADDLIB=
  214. #options if you compile with libc5, and without a bind>=4.9.4 libresolv
  215. @@ -33,7 +33,7 @@
  216. LDLIBS += -L../lib -lnetlink -lutil
  217. -SUBDIRS=lib ip tc
  218. +SUBDIRS=lib ip
  219. LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a