# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../iproute2/compile.patch.dietlibc # Copyright (C) 2004 - 2019 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- --- iproute2-4.20.0/Makefile.vanilla 2019-02-06 16:53:59.761138218 +0000 +++ iproute2-4.20.0/Makefile 2019-02-06 16:54:15.517138038 +0000 @@ -61,7 +61,7 @@ CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS) YACCFLAGS = -d -t -v -SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma man +SUBDIRS=lib ip tc LIBNETLINK=../lib/libutil.a ../lib/libnetlink.a LDLIBS += $(LIBNETLINK) --- iproute2-2.6.9.orig/ip/ipaddress.c 2004-12-23 18:40:20.000000000 -0300 +++ iproute2-2.6.9/ip/ipaddress.c 2004-12-23 18:50:12.000000000 -0300 @@ -25,8 +25,9 @@ #include #include -#include -#include +//#include +#include +#include #include #include "rt_names.h" @@ -34,6 +35,39 @@ #include "ll_map.h" #include "ip_common.h" +struct net_device_stats +{ + unsigned long rx_packets; /* total packets received */ + unsigned long tx_packets; /* total packets transmitted */ + unsigned long rx_bytes; /* total bytes received */ + unsigned long tx_bytes; /* total bytes transmitted */ + unsigned long rx_errors; /* bad packets received */ + unsigned long tx_errors; /* packet transmit problems */ + unsigned long rx_dropped; /* no space in linux buffers */ + unsigned long tx_dropped; /* no space available in linux */ + unsigned long multicast; /* multicast packets received */ + unsigned long collisions; + + /* detailed rx_errors: */ + unsigned long rx_length_errors; + unsigned long rx_over_errors; /* receiver ring buff overflow */ + unsigned long rx_crc_errors; /* recved pkt with crc error */ + unsigned long rx_frame_errors; /* recv'd frame alignment error */ + unsigned long rx_fifo_errors; /* recv'r fifo overrun */ + unsigned long rx_missed_errors; /* receiver missed packet */ + + /* detailed tx_errors */ + unsigned long tx_aborted_errors; + unsigned long tx_carrier_errors; + unsigned long tx_fifo_errors; + unsigned long tx_heartbeat_errors; + unsigned long tx_window_errors; + + /* for cslip etc */ + unsigned long rx_compressed; + unsigned long tx_compressed; +}; + static struct { int ifindex; --- iproute2-2.6.9.orig/ip/iplink.c 2004-12-23 18:40:20.000000000 -0300 +++ iproute2-2.6.9/ip/iplink.c 2004-12-23 18:44:07.000000000 -0300 @@ -10,6 +10,9 @@ * */ +#define _LINUX_TYPES_H +#include + #include #include #include --- iproute2-2.6.9.orig/ip/ipmaddr.c 2004-12-23 18:40:20.000000000 -0300 +++ iproute2-2.6.9/ip/ipmaddr.c 2004-12-23 18:44:09.000000000 -0300 @@ -10,6 +10,9 @@ * */ +#define _LINUX_TYPES_H +#include + #include #include #include --- iproute2-2.6.9.orig/ip/ipmroute.c 2004-12-23 18:40:20.000000000 -0300 +++ iproute2-2.6.9/ip/ipmroute.c 2004-12-23 18:44:10.000000000 -0300 @@ -10,6 +10,9 @@ * */ +#define _LINUX_TYPES_H +#include + #include #include #include --- iproute2-2.6.9.orig/ip/iptunnel.c 2004-12-23 18:40:20.000000000 -0300 +++ iproute2-2.6.9/ip/iptunnel.c 2004-12-23 18:44:06.000000000 -0300 @@ -16,6 +16,9 @@ * Phil Karn 990408: "pmtudisc" flag */ +#define _LINUX_TYPES_H +#include + #include #include #include --- iproute2-2.6.9.orig/lib/ll_addr.c 2004-12-23 18:40:20.000000000 -0300 +++ iproute2-2.6.9/lib/ll_addr.c 2004-12-23 18:52:29.000000000 -0300 @@ -21,8 +21,8 @@ #include #include -#include -#include +//#include +#include #include #include "rt_names.h" --- iproute2-2.6.9.orig/lib/ll_proto.c 2004-12-23 18:40:20.000000000 -0300 +++ iproute2-2.6.9/lib/ll_proto.c 2004-12-23 18:53:32.000000000 -0300 @@ -21,8 +21,9 @@ #include #include -#include -#include +//#include +#include +#include #include #include "utils.h" --- iproute2-2.6.9.orig/lib/ll_types.c 2004-12-23 18:40:20.000000000 -0300 +++ iproute2-2.6.9/lib/ll_types.c 2004-12-23 18:54:26.000000000 -0300 @@ -21,8 +21,8 @@ #include #include -#include -#include +//#include +#include #include #include "rt_names.h"