1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
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
8 # More information can be found in the files COPYING and README.
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
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
21 CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS)
24 -SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma man
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
35 -#include <linux/netdevice.h>
36 -#include <linux/if_arp.h>
37 +//#include <linux/netdevice.h>
39 +#include <net/if_arp.h>
40 #include <linux/sockios.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;
76 + unsigned long rx_compressed;
77 + unsigned long tx_compressed;
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
89 +#define _LINUX_TYPES_H
90 +#include <asm/types.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
101 +#define _LINUX_TYPES_H
102 +#include <asm/types.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
113 +#define _LINUX_TYPES_H
114 +#include <asm/types.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
122 * Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
125 +#define _LINUX_TYPES_H
126 +#include <asm/byteorder.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
134 #include <arpa/inet.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
147 #include <arpa/inet.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>
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
161 #include <arpa/inet.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"