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.

232 lines
7.2 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./include/rt_names.h.orig 2003-04-06 17:07:44.000000000 +0200
  23. +++ ./include/rt_names.h 2003-04-06 17:07:52.000000000 +0200
  24. @@ -1,6 +1,8 @@
  25. #ifndef RT_NAMES_H_
  26. #define RT_NAMES_H_ 1
  27. +#include <asm/types.h>
  28. +
  29. const char* rtnl_rtprot_n2a(int id, char *buf, int len);
  30. const char* rtnl_rtscope_n2a(int id, char *buf, int len);
  31. const char* rtnl_rttable_n2a(int id, char *buf, int len);
  32. --- ./include-glibc/netinet/in.h.orig 2003-04-06 17:20:23.000000000 +0200
  33. +++ ./include-glibc/netinet/in.h 2003-04-06 17:23:23.000000000 +0200
  34. @@ -1,3 +1,5 @@
  35. +#include_next <netinet/in.h>
  36. +#if 0
  37. #ifndef _NETINET_IN_H
  38. #define _NETINET_IN_H 1
  39. @@ -12,3 +14,4 @@
  40. #define SOL_IP 0
  41. #endif /* netinet/in.h */
  42. +#endif
  43. --- ./include-glibc/netinet/ip.h.orig 2003-04-06 17:20:41.000000000 +0200
  44. +++ ./include-glibc/netinet/ip.h 2003-04-06 17:23:28.000000000 +0200
  45. @@ -1,3 +1,5 @@
  46. +#include_next <netinet/ip.h>
  47. +#if 0
  48. #ifndef __NETINET_IP_H
  49. #define __NETINET_IP_H 1
  50. @@ -7,3 +9,4 @@
  51. #include <linux/ip.h>
  52. #endif /* netinet/ip.h */
  53. +#endif
  54. --- ./ip/ipaddress.c.orig 2001-08-23 06:07:46.000000000 +0200
  55. +++ ./ip/ipaddress.c 2003-04-06 17:05:14.000000000 +0200
  56. @@ -20,8 +20,9 @@
  57. #include <sys/ioctl.h>
  58. #include <sys/socket.h>
  59. #include <sys/ioctl.h>
  60. -#include <linux/netdevice.h>
  61. -#include <linux/if_arp.h>
  62. +// #include <linux/netdevice.h>
  63. +#include <net/if.h>
  64. +#include <net/if_arp.h>
  65. #include <linux/sockios.h>
  66. #include <netinet/in.h>
  67. #include <arpa/inet.h>
  68. @@ -33,6 +34,39 @@
  69. #include "ll_map.h"
  70. #include "ip_common.h"
  71. +struct net_device_stats
  72. +{
  73. + unsigned long rx_packets; /* total packets received */
  74. + unsigned long tx_packets; /* total packets transmitted */
  75. + unsigned long rx_bytes; /* total bytes received */
  76. + unsigned long tx_bytes; /* total bytes transmitted */
  77. + unsigned long rx_errors; /* bad packets received */
  78. + unsigned long tx_errors; /* packet transmit problems */
  79. + unsigned long rx_dropped; /* no space in linux buffers */
  80. + unsigned long tx_dropped; /* no space available in linux */
  81. + unsigned long multicast; /* multicast packets received */
  82. + unsigned long collisions;
  83. +
  84. + /* detailed rx_errors: */
  85. + unsigned long rx_length_errors;
  86. + unsigned long rx_over_errors; /* receiver ring buff overflow */
  87. + unsigned long rx_crc_errors; /* recved pkt with crc error */
  88. + unsigned long rx_frame_errors; /* recv'd frame alignment error */
  89. + unsigned long rx_fifo_errors; /* recv'r fifo overrun */
  90. + unsigned long rx_missed_errors; /* receiver missed packet */
  91. +
  92. + /* detailed tx_errors */
  93. + unsigned long tx_aborted_errors;
  94. + unsigned long tx_carrier_errors;
  95. + unsigned long tx_fifo_errors;
  96. + unsigned long tx_heartbeat_errors;
  97. + unsigned long tx_window_errors;
  98. +
  99. + /* for cslip etc */
  100. + unsigned long rx_compressed;
  101. + unsigned long tx_compressed;
  102. +};
  103. +
  104. static struct
  105. {
  106. int ifindex;
  107. --- ./ip/iptunnel.c.orig 2003-04-06 17:08:43.000000000 +0200
  108. +++ ./ip/iptunnel.c 2003-04-06 17:09:17.000000000 +0200
  109. @@ -16,6 +16,9 @@
  110. * Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
  111. */
  112. +#define _LINUX_TYPES_H
  113. +#include <asm/types.h>
  114. +
  115. #include <stdio.h>
  116. #include <stdlib.h>
  117. #include <string.h>
  118. --- ./ip/iplink.c.orig 2003-04-06 17:09:55.000000000 +0200
  119. +++ ./ip/iplink.c 2003-04-06 17:10:04.000000000 +0200
  120. @@ -10,6 +10,9 @@
  121. *
  122. */
  123. +#define _LINUX_TYPES_H
  124. +#include <asm/types.h>
  125. +
  126. #include <stdio.h>
  127. #include <stdlib.h>
  128. #include <unistd.h>
  129. --- ./ip/ipmaddr.c.orig 2003-04-06 17:14:25.000000000 +0200
  130. +++ ./ip/ipmaddr.c 2003-04-06 17:14:31.000000000 +0200
  131. @@ -10,6 +10,9 @@
  132. *
  133. */
  134. +#define _LINUX_TYPES_H
  135. +#include <asm/types.h>
  136. +
  137. #include <stdio.h>
  138. #include <stdlib.h>
  139. #include <unistd.h>
  140. --- ./ip/ipmroute.c.orig 2003-04-06 17:14:38.000000000 +0200
  141. +++ ./ip/ipmroute.c 2003-04-06 17:14:43.000000000 +0200
  142. @@ -10,6 +10,9 @@
  143. *
  144. */
  145. +#define _LINUX_TYPES_H
  146. +#include <asm/types.h>
  147. +
  148. #include <stdio.h>
  149. #include <stdlib.h>
  150. #include <unistd.h>
  151. --- ./lib/rt_names.c.orig 2000-04-16 19:42:52.000000000 +0200
  152. +++ ./lib/rt_names.c 2003-04-06 11:36:43.000000000 +0200
  153. @@ -16,6 +16,7 @@
  154. #include <fcntl.h>
  155. #include <string.h>
  156. #include <sys/time.h>
  157. +#include <asm/types.h>
  158. static void rtnl_tab_initialize(char *file, char **tab, int size)
  159. {
  160. --- ./lib/utils.c.orig 2001-08-24 19:09:54.000000000 +0200
  161. +++ ./lib/utils.c 2003-04-06 11:36:43.000000000 +0200
  162. @@ -25,6 +25,7 @@
  163. #include <netdb.h>
  164. #include <arpa/inet.h>
  165. #include <resolv.h>
  166. +#include <asm/types.h>
  167. #include <linux/pkt_sched.h>
  168. #include "utils.h"
  169. --- ./lib/ll_addr.c.orig 2000-04-16 19:42:52.000000000 +0200
  170. +++ ./lib/ll_addr.c 2003-04-06 11:36:43.000000000 +0200
  171. @@ -17,8 +17,8 @@
  172. #include <sys/ioctl.h>
  173. #include <sys/socket.h>
  174. #include <sys/ioctl.h>
  175. -#include <linux/netdevice.h>
  176. -#include <linux/if_arp.h>
  177. +//#include <linux/netdevice.h>
  178. +#include <net/if_arp.h>
  179. #include <linux/sockios.h>
  180. #include <netinet/in.h>
  181. #include <arpa/inet.h>
  182. --- ./lib/ll_proto.c.orig 2001-08-02 04:41:41.000000000 +0200
  183. +++ ./lib/ll_proto.c 2003-04-06 11:36:43.000000000 +0200
  184. @@ -17,8 +17,9 @@
  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 <net/if_ether.h>
  193. #include <linux/sockios.h>
  194. #include <netinet/in.h>
  195. #include <arpa/inet.h>
  196. --- ./lib/ll_types.c.orig 2001-08-02 05:18:33.000000000 +0200
  197. +++ ./lib/ll_types.c 2003-04-06 11:36:43.000000000 +0200
  198. @@ -17,8 +17,8 @@
  199. #include <sys/ioctl.h>
  200. #include <sys/socket.h>
  201. #include <sys/ioctl.h>
  202. -#include <linux/netdevice.h>
  203. -#include <linux/if_arp.h>
  204. +//#include <linux/netdevice.h>
  205. +#include <net/if_arp.h>
  206. #include <linux/sockios.h>
  207. #include <netinet/in.h>
  208. #include <arpa/inet.h>
  209. --- ./Makefile.orig 2001-08-02 08:37:03.000000000 +0200
  210. +++ ./Makefile 2003-04-06 17:24:39.000000000 +0200
  211. @@ -33,7 +33,7 @@
  212. LDLIBS += -L../lib -lnetlink -lutil
  213. -SUBDIRS=lib ip tc
  214. +SUBDIRS=lib ip
  215. LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a