Dash:
[t2.git] / package / network / iproute2 / compile.patch.dietlibc
blobb496bcdd4f0d4453a6011a0d9e8e996b3372d0ec
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3
4 # T2 SDE: package/.../iproute2/compile.patch.dietlibc
5 # Copyright (C) 2004 - 2019 The T2 SDE Project
6 # Copyright (C) 1998 - 2004 ROCK Linux Project
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 ---
18 --- iproute2-4.20.0/Makefile.vanilla    2019-02-06 16:53:59.761138218 +0000
19 +++ iproute2-4.20.0/Makefile    2019-02-06 16:54:15.517138038 +0000
20 @@ -61,7 +61,7 @@
21  CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS)
22  YACCFLAGS = -d -t -v
24 -SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma man
25 +SUBDIRS=lib ip tc
27  LIBNETLINK=../lib/libutil.a ../lib/libnetlink.a
28  LDLIBS += $(LIBNETLINK)
29 --- iproute2-2.6.9.orig/ip/ipaddress.c  2004-12-23 18:40:20.000000000 -0300
30 +++ iproute2-2.6.9/ip/ipaddress.c       2004-12-23 18:50:12.000000000 -0300
31 @@ -25,8 +25,9 @@
32  #include <string.h>
33  #include <fnmatch.h>
35 -#include <linux/netdevice.h>
36 -#include <linux/if_arp.h>
37 +//#include <linux/netdevice.h>
38 +#include <net/if.h>
39 +#include <net/if_arp.h>
40  #include <linux/sockios.h>
42  #include "rt_names.h"
43 @@ -34,6 +35,39 @@
44  #include "ll_map.h"
45  #include "ip_common.h"
47 +struct net_device_stats
49 +        unsigned long   rx_packets;             /* total packets received       */
50 +        unsigned long   tx_packets;             /* total packets transmitted    */
51 +        unsigned long   rx_bytes;               /* total bytes received         */
52 +        unsigned long   tx_bytes;               /* total bytes transmitted      */
53 +        unsigned long   rx_errors;              /* bad packets received         */
54 +        unsigned long   tx_errors;              /* packet transmit problems     */
55 +        unsigned long   rx_dropped;             /* no space in linux buffers    */
56 +        unsigned long   tx_dropped;             /* no space available in linux  */
57 +        unsigned long   multicast;              /* multicast packets received   */
58 +        unsigned long   collisions;
60 +        /* detailed rx_errors: */
61 +        unsigned long   rx_length_errors;
62 +        unsigned long   rx_over_errors;         /* receiver ring buff overflow  */
63 +        unsigned long   rx_crc_errors;          /* recved pkt with crc error    */
64 +        unsigned long   rx_frame_errors;        /* recv'd frame alignment error */
65 +        unsigned long   rx_fifo_errors;         /* recv'r fifo overrun          */
66 +        unsigned long   rx_missed_errors;       /* receiver missed packet       */
68 +        /* detailed tx_errors */
69 +        unsigned long   tx_aborted_errors;
70 +        unsigned long   tx_carrier_errors;
71 +        unsigned long   tx_fifo_errors;
72 +        unsigned long   tx_heartbeat_errors;
73 +        unsigned long   tx_window_errors;
75 +        /* for cslip etc */
76 +        unsigned long   rx_compressed;
77 +        unsigned long   tx_compressed;
78 +};
80  static struct
81  {
82         int ifindex;
83 --- iproute2-2.6.9.orig/ip/iplink.c     2004-12-23 18:40:20.000000000 -0300
84 +++ iproute2-2.6.9/ip/iplink.c  2004-12-23 18:44:07.000000000 -0300
85 @@ -10,6 +10,9 @@
86   *
87   */
89 +#define _LINUX_TYPES_H
90 +#include <asm/types.h>
92  #include <stdio.h>
93  #include <stdlib.h>
94  #include <unistd.h>
95 --- iproute2-2.6.9.orig/ip/ipmaddr.c    2004-12-23 18:40:20.000000000 -0300
96 +++ iproute2-2.6.9/ip/ipmaddr.c 2004-12-23 18:44:09.000000000 -0300
97 @@ -10,6 +10,9 @@
98   *
99   */
101 +#define _LINUX_TYPES_H
102 +#include <asm/types.h>
104  #include <stdio.h>
105  #include <stdlib.h>
106  #include <unistd.h>
107 --- iproute2-2.6.9.orig/ip/ipmroute.c   2004-12-23 18:40:20.000000000 -0300
108 +++ iproute2-2.6.9/ip/ipmroute.c        2004-12-23 18:44:10.000000000 -0300
109 @@ -10,6 +10,9 @@
110   *
111   */
113 +#define _LINUX_TYPES_H
114 +#include <asm/types.h>
116  #include <stdio.h>
117  #include <stdlib.h>
118  #include <unistd.h>
119 --- iproute2-2.6.9.orig/ip/iptunnel.c   2004-12-23 18:40:20.000000000 -0300
120 +++ iproute2-2.6.9/ip/iptunnel.c        2004-12-23 18:44:06.000000000 -0300
121 @@ -16,6 +16,9 @@
122   * Phil Karn <karn@ka9q.ampr.org>      990408: "pmtudisc" flag
123   */
125 +#define _LINUX_TYPES_H
126 +#include <asm/byteorder.h>
128  #include <stdio.h>
129  #include <stdlib.h>
130  #include <string.h>
131 --- iproute2-2.6.9.orig/lib/ll_addr.c   2004-12-23 18:40:20.000000000 -0300
132 +++ iproute2-2.6.9/lib/ll_addr.c        2004-12-23 18:52:29.000000000 -0300
133 @@ -21,8 +21,8 @@
134  #include <arpa/inet.h>
135  #include <string.h>
137 -#include <linux/netdevice.h>
138 -#include <linux/if_arp.h>
139 +//#include <linux/netdevice.h>
140 +#include <net/if_arp.h>
141  #include <linux/sockios.h>
143  #include "rt_names.h"
144 --- iproute2-2.6.9.orig/lib/ll_proto.c  2004-12-23 18:40:20.000000000 -0300
145 +++ iproute2-2.6.9/lib/ll_proto.c       2004-12-23 18:53:32.000000000 -0300
146 @@ -21,8 +21,9 @@
147  #include <arpa/inet.h>
148  #include <string.h>
150 -#include <linux/netdevice.h>
151 -#include <linux/if_arp.h>
152 +//#include <linux/netdevice.h>
153 +#include <net/if_arp.h>
154 +#include <net/if_ether.h>
155  #include <linux/sockios.h>
157  #include "utils.h"
158 --- iproute2-2.6.9.orig/lib/ll_types.c  2004-12-23 18:40:20.000000000 -0300
159 +++ iproute2-2.6.9/lib/ll_types.c       2004-12-23 18:54:26.000000000 -0300
160 @@ -21,8 +21,8 @@
161  #include <arpa/inet.h>
162  #include <string.h>
164 -#include <linux/netdevice.h>
165 -#include <linux/if_arp.h>
166 +//#include <linux/netdevice.h>
167 +#include <net/if_arp.h>
168  #include <linux/sockios.h>
170  #include "rt_names.h"