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.

225 lines
7.0 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. @@ -16,6 +16,9 @@
  96. * Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
  97. */
  98. +#define _LINUX_TYPES_H
  99. +#include <asm/types.h>
  100. +
  101. #include <stdio.h>
  102. #include <stdlib.h>
  103. #include <string.h>
  104. --- ./ip/iplink.c.orig 2003-04-06 17:09:55.000000000 +0200
  105. +++ ./ip/iplink.c 2003-04-06 17:10:04.000000000 +0200
  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. --- ./ip/ipmaddr.c.orig 2003-04-06 17:14:25.000000000 +0200
  116. +++ ./ip/ipmaddr.c 2003-04-06 17:14:31.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/ipmroute.c.orig 2003-04-06 17:14:38.000000000 +0200
  127. +++ ./ip/ipmroute.c 2003-04-06 17:14:43.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. --- ./lib/rt_names.c.orig 2000-04-16 19:42:52.000000000 +0200
  138. +++ ./lib/rt_names.c 2003-04-06 11:36:43.000000000 +0200
  139. @@ -16,6 +16,7 @@
  140. #include <fcntl.h>
  141. #include <string.h>
  142. #include <sys/time.h>
  143. +#include <asm/types.h>
  144. static void rtnl_tab_initialize(char *file, char **tab, int size)
  145. {
  146. --- ./lib/utils.c.orig 2001-08-24 19:09:54.000000000 +0200
  147. +++ ./lib/utils.c 2003-04-06 11:36:43.000000000 +0200
  148. @@ -25,6 +25,7 @@
  149. #include <netdb.h>
  150. #include <arpa/inet.h>
  151. #include <resolv.h>
  152. +#include <asm/types.h>
  153. #include <linux/pkt_sched.h>
  154. #include "utils.h"
  155. --- ./lib/ll_addr.c.orig 2000-04-16 19:42:52.000000000 +0200
  156. +++ ./lib/ll_addr.c 2003-04-06 11:36:43.000000000 +0200
  157. @@ -17,8 +17,8 @@
  158. #include <sys/ioctl.h>
  159. #include <sys/socket.h>
  160. #include <sys/ioctl.h>
  161. -#include <linux/netdevice.h>
  162. -#include <linux/if_arp.h>
  163. +//#include <linux/netdevice.h>
  164. +#include <net/if_arp.h>
  165. #include <linux/sockios.h>
  166. #include <netinet/in.h>
  167. #include <arpa/inet.h>
  168. --- ./lib/ll_proto.c.orig 2001-08-02 04:41:41.000000000 +0200
  169. +++ ./lib/ll_proto.c 2003-04-06 11:36:43.000000000 +0200
  170. @@ -17,8 +17,9 @@
  171. #include <sys/ioctl.h>
  172. #include <sys/socket.h>
  173. #include <sys/ioctl.h>
  174. -#include <linux/netdevice.h>
  175. -#include <linux/if_arp.h>
  176. +//#include <linux/netdevice.h>
  177. +#include <net/if_arp.h>
  178. +#include <net/if_ether.h>
  179. #include <linux/sockios.h>
  180. #include <netinet/in.h>
  181. #include <arpa/inet.h>
  182. --- ./lib/ll_types.c.orig 2001-08-02 05:18:33.000000000 +0200
  183. +++ ./lib/ll_types.c 2003-04-06 11:36:43.000000000 +0200
  184. @@ -17,8 +17,8 @@
  185. #include <sys/ioctl.h>
  186. #include <sys/socket.h>
  187. #include <sys/ioctl.h>
  188. -#include <linux/netdevice.h>
  189. -#include <linux/if_arp.h>
  190. +//#include <linux/netdevice.h>
  191. +#include <net/if_arp.h>
  192. #include <linux/sockios.h>
  193. #include <netinet/in.h>
  194. #include <arpa/inet.h>
  195. --- ./Makefile.orig Fri Sep 5 14:30:17 2003
  196. +++ ./Makefile Fri Sep 5 14:37:24 2003
  197. @@ -5,7 +5,7 @@
  198. DEFINES= -DRESOLVE_HOSTNAMES
  199. #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
  200. -LDLIBS=-lresolv
  201. +LDLIBS=
  202. ADDLIB=
  203. #options if you compile with libc5, and without a bind>=4.9.4 libresolv
  204. @@ -33,7 +33,7 @@
  205. LDLIBS += -L../lib -lnetlink -lutil
  206. -SUBDIRS=lib ip tc misc
  207. +SUBDIRS=lib ip
  208. LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a