[info=3c8a9a623eeb8f3d7b6f366d56863bd6275e9dea6c9958e1acd568acb94def78]
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iproute2?expand=0&rev=254
This commit is contained in:
commit
1e80150ae4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
4
_scmsync.obsinfo
Normal file
4
_scmsync.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
mtime: 1715872417
|
||||
commit: 3c8a9a623eeb8f3d7b6f366d56863bd6275e9dea6c9958e1acd568acb94def78
|
||||
url: https://src.opensuse.org/jengelh/iproute2
|
||||
revision: master
|
24
add-explicit-typecast-to-avoid-gcc-warning.patch
Normal file
24
add-explicit-typecast-to-avoid-gcc-warning.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From: Michal Kubecek <mkubecek@suse.cz>
|
||||
Date: Fri, 15 Jan 2016 07:31:30 +0100
|
||||
Subject: add explicit typecast to avoid gcc warning
|
||||
Patch-mainline: No
|
||||
|
||||
---
|
||||
lib/utils.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
Index: iproute2-6.3.0/lib/utils.c
|
||||
===================================================================
|
||||
--- iproute2-6.3.0.orig/lib/utils.c
|
||||
+++ iproute2-6.3.0/lib/utils.c
|
||||
@@ -881,8 +881,8 @@ bool matches(const char *prefix, const c
|
||||
|
||||
int inet_addr_match(const inet_prefix *a, const inet_prefix *b, int bits)
|
||||
{
|
||||
- const __u32 *a1 = a->data;
|
||||
- const __u32 *a2 = b->data;
|
||||
+ const __u32 *a1 = (__u32*)a->data;
|
||||
+ const __u32 *a2 = (__u32*)b->data;
|
||||
int words = bits >> 0x05;
|
||||
|
||||
bits &= 0x1f;
|
73
adjust-installation-directories-for-openSUSE-SLE.patch
Normal file
73
adjust-installation-directories-for-openSUSE-SLE.patch
Normal file
@ -0,0 +1,73 @@
|
||||
From: Michal Kubecek <mkubecek@suse.cz>
|
||||
Date: Fri, 15 Jan 2016 07:29:44 +0100
|
||||
Subject: adjust installation directories for openSUSE/SLE
|
||||
Patch-mainline: Never, SUSE specific
|
||||
|
||||
Match the directory layout of openSUSE and SLE.
|
||||
---
|
||||
Makefile | 6 +++---
|
||||
netem/Makefile | 5 +++--
|
||||
tc/q_netem.c | 2 +-
|
||||
3 files changed, 7 insertions(+), 6 deletions(-)
|
||||
|
||||
Index: iproute2-6.7.0/Makefile
|
||||
===================================================================
|
||||
--- iproute2-6.7.0.orig/Makefile
|
||||
+++ iproute2-6.7.0/Makefile
|
||||
@@ -15,8 +15,8 @@ MAKEFLAGS += --no-print-directory
|
||||
endif
|
||||
|
||||
PREFIX?=/usr
|
||||
-SBINDIR?=/sbin
|
||||
-NETNS_RUN_DIR?=/var/run/netns
|
||||
+SBINDIR?=/usr/sbin
|
||||
+NETNS_RUN_DIR?=/run/netns
|
||||
NETNS_ETC_DIR?=/etc/netns
|
||||
DATADIR?=$(PREFIX)/share
|
||||
HDRDIR?=$(PREFIX)/include/iproute2
|
||||
@@ -33,7 +33,7 @@ DBM_INCLUDE:=$(DESTDIR)/usr/include
|
||||
|
||||
SHARED_LIBS = y
|
||||
|
||||
-DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\"
|
||||
+DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\" -DPKGDATADIR=\"$(DATADIR)/tc\"
|
||||
ifneq ($(SHARED_LIBS),y)
|
||||
DEFINES+= -DNO_SHARED_LIBS
|
||||
endif
|
||||
Index: iproute2-6.7.0/netem/Makefile
|
||||
===================================================================
|
||||
--- iproute2-6.7.0.orig/netem/Makefile
|
||||
+++ iproute2-6.7.0/netem/Makefile
|
||||
@@ -7,6 +7,7 @@ DISTDATA = normal.dist pareto.dist paret
|
||||
HOSTCC ?= $(CC)
|
||||
CCOPTS = $(CBUILD_CFLAGS)
|
||||
LDLIBS += -lm
|
||||
+LIBDIR = /usr/lib
|
||||
|
||||
all: $(DISTGEN) $(DISTDATA)
|
||||
|
||||
@@ -23,9 +24,9 @@ stats: stats.c
|
||||
$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
|
||||
|
||||
install: all
|
||||
- mkdir -p $(DESTDIR)$(LIBDIR)/tc
|
||||
+ mkdir -p $(DESTDIR)/usr/share/tc
|
||||
for i in $(DISTDATA); \
|
||||
- do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
|
||||
+ do install -m 644 $$i $(DESTDIR)/usr/share/tc; \
|
||||
done
|
||||
|
||||
clean:
|
||||
Index: iproute2-6.7.0/tc/q_netem.c
|
||||
===================================================================
|
||||
--- iproute2-6.7.0.orig/tc/q_netem.c
|
||||
+++ iproute2-6.7.0/tc/q_netem.c
|
||||
@@ -131,7 +131,7 @@ static int get_distribution(const char *
|
||||
char *line = NULL;
|
||||
char name[128];
|
||||
|
||||
- snprintf(name, sizeof(name), "%s/%s.dist", get_tc_lib(), type);
|
||||
+ snprintf(name, sizeof(name), "%s/%s.dist", PKGDATADIR, type);
|
||||
f = fopen(name, "r");
|
||||
if (f == NULL) {
|
||||
fprintf(stderr, "No distribution data for %s (%s: %s)\n",
|
3
build.specials.obscpio
Normal file
3
build.specials.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b6114624cd4de3e06ff91ef5a28bbdb43e9e8d2d80f60ab77e4efcaf2ab2595f
|
||||
size 256
|
BIN
iproute2-6.9.0.tar.sign
Normal file
BIN
iproute2-6.9.0.tar.sign
Normal file
Binary file not shown.
3
iproute2-6.9.0.tar.xz
Normal file
3
iproute2-6.9.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2f643d09ea11a4a2a043c92e2b469b5f73228cbf241ae806760296ed0ec413d0
|
||||
size 918144
|
1994
iproute2.changes
Normal file
1994
iproute2.changes
Normal file
File diff suppressed because it is too large
Load Diff
97
iproute2.keyring
Normal file
97
iproute2.keyring
Normal file
@ -0,0 +1,97 @@
|
||||
pub 4096R/95CDE47E 2011-10-03
|
||||
uid Stephen Hemminger <stephen@networkplumber.org>
|
||||
uid Stephen Hemminger <shemminger@vyatta.com>
|
||||
uid Stephen Hemminger <stephen.hemminger@gmail.com>
|
||||
uid Stephen Hemminger <stephen.hemminger@vyatta.com>
|
||||
sub 4096R/C0728CDC 2011-10-03
|
||||
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||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W+qKeUh4SfBbMxz6BjS9LT+Ucta
|
||||
T+D32Ofo3XNWfpxeL9/QXP5+B+pBKubZLHva6ZuZtH5GP8uO4B953GBGyyuEFRdG
|
||||
a7Oo6bOz8dLHRCwg5trjRxXHPT+q5XAmBhR7SGnn9H8x0bsEuWVKYNbQ2w/7bJSB
|
||||
JlgzZnN85wI9+OTPUpDsXiY/xqjgcSGH9TX52FqPwysGVwK//s6bkVDtO52cnnge
|
||||
a1Ee2NJdfcjJugIW0ZaYW+syduBUDkwmtHI39T6RyaK7ANftzrh5BsElj9mZqqBt
|
||||
pm+uwiMm2iM+Ai4B6lBz3Sw2A8g4nbMWKfwOSh9mHzNzpQ/FrcuQbLF+mhGCzpAW
|
||||
MircLaAEdL+MszxyOH3ccoTeGKuwIbwIGHb/8a/ehXABTB2eQMvX1Ajlg7Hz3+Ob
|
||||
BxXJHIVRWqKKp7li/4YiznP0tOxTmK9XWpW58yGBS/Vv/iTV6QpmX7oSGF1Ahx8e
|
||||
nTp94plRAI0g0Up3RD/jun+a+/zUwsskxLFj90F9KQHOJzh3RE5TuQ==
|
||||
=3akb
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
187
iproute2.spec
Normal file
187
iproute2.spec
Normal file
@ -0,0 +1,187 @@
|
||||
#
|
||||
# spec file for package iproute2
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define _buildshell /bin/bash
|
||||
Name: iproute2
|
||||
Version: 6.9
|
||||
Release: 0
|
||||
Summary: Linux network configuration utilities
|
||||
License: GPL-2.0-only
|
||||
Group: Productivity/Networking/Routing
|
||||
URL: https://wiki.linuxfoundation.org/networking/iproute2
|
||||
# Using GPL-2.0 instead of GPL-2.0+ because of tc_skbedit.h and tc/q_multiq.c
|
||||
|
||||
#DL-URL: https://kernel.org/pub/linux/utils/net/iproute2/
|
||||
#Git-Clone: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/
|
||||
#Git-Mirror: https://github.com/shemminger/iproute2 ## not regularly updated
|
||||
Source: https://kernel.org/pub/linux/utils/net/iproute2/%name-%version.0.tar.xz
|
||||
Source2: https://kernel.org/pub/linux/utils/net/iproute2/%name-%version.0.tar.sign
|
||||
Source3: %name.tmpfiles
|
||||
Source9: %name.keyring
|
||||
Patch1: adjust-installation-directories-for-openSUSE-SLE.patch
|
||||
Patch2: use-sysconf-_SC_CLK_TCK-if-HZ-undefined.patch
|
||||
Patch3: add-explicit-typecast-to-avoid-gcc-warning.patch
|
||||
Patch6: split-link-and-compile-steps-for-binaries.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: db-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flex
|
||||
BuildRequires: libbpf-devel
|
||||
BuildRequires: libelf-devel
|
||||
BuildRequires: pkgconfig >= 0.21
|
||||
BuildRequires: xz
|
||||
BuildRequires: pkgconfig(libmnl)
|
||||
BuildRequires: pkgconfig(libselinux)
|
||||
BuildRequires: pkgconfig(xtables) >= 1.4.11
|
||||
Provides: %name-doc = %version
|
||||
Provides: iproute = %version-%release
|
||||
Provides: %name(xfrm6_raw) = %version-%release
|
||||
Obsoletes: %name-doc < 4.15.0
|
||||
|
||||
%description
|
||||
iproute2 is a collection of user-space utilities to set up networking
|
||||
under Linux from the command-line. It can inspect and configure,
|
||||
among other things: interface paramters, IP addresses, routing,
|
||||
tunnels, bridges, packet transformations (IPsec, etc.), and Quality
|
||||
of Service.
|
||||
|
||||
%package -n libnetlink-devel
|
||||
Summary: A Higher Level Interface to the Netlink Service
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
Provides: libnetlink = %version-%release
|
||||
|
||||
%description -n libnetlink-devel
|
||||
libnetlink provides a higher-level interface to rtnetlink(7).
|
||||
New programs should use libmnl-devel instead.
|
||||
|
||||
%package bash-completion
|
||||
Summary: Bash completion for iproute
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Shells
|
||||
Requires: %name
|
||||
Requires: bash-completion
|
||||
Supplements: (%name and bash-completion)
|
||||
|
||||
%description bash-completion
|
||||
bash command line completion support for iproute.
|
||||
|
||||
%package arpd
|
||||
Summary: Userspace ARP daemon
|
||||
License: GPL-2.0-only
|
||||
Group: Productivity/Networking/Routing
|
||||
Provides: iproute2:%_sbindir/arpd
|
||||
|
||||
%description arpd
|
||||
The arpd daemon collects gratuitous ARP information, saving it on
|
||||
local disk and feeding it to the kernel on demand to avoid redundant
|
||||
broadcasting due to limited standard size (512..1024 entries,
|
||||
depending on type) of the kernel ARP cache.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %name-%version.0
|
||||
|
||||
find . -name *.orig -delete
|
||||
|
||||
%build
|
||||
%global _lto_cflags %_lto_cflags -ffat-lto-objects
|
||||
# build with -fPIC. For details see
|
||||
# https://bugzilla.novell.com/show_bug.cgi?id=388021
|
||||
xt_libdir="$(pkg-config xtables --variable=xtlibdir)"
|
||||
xt_cflags="$(pkg-config xtables --cflags)"
|
||||
%if 0%{!?make_build:1}
|
||||
%define make_build make %{?_smp_mflags}
|
||||
%endif
|
||||
%make_build CCOPTS="-D_GNU_SOURCE %optflags -Wstrict-prototypes -Wno-error -fPIC -DXT_LIB_DIR=\\\"$xt_libdir\\\" $xt_cflags"
|
||||
|
||||
%install
|
||||
b="%buildroot"
|
||||
mkdir -p "$b/usr/bin" "$b/usr/sbin" "$b/sbin"
|
||||
%make_install MODDESTDIR="$b/%_libdir/tc"
|
||||
|
||||
# We have m_xt instead
|
||||
rm -f "$b/%_libdir/tc/m_ipt.so"
|
||||
|
||||
install -pm0644 "lib/libnetlink.a" "$b/%_libdir/"
|
||||
chmod -x "$b/%_libdir/libnetlink.a"
|
||||
install -pm0644 "include/libnetlink.h" "$b/%_includedir/"
|
||||
chmod -x "$b/%_includedir/libnetlink.h"
|
||||
install -Dm0644 "%SOURCE3" "$b/%_tmpfilesdir/%name.conf"
|
||||
%if 0%{?suse_version} >= 1550
|
||||
ln -sf "%_sbindir/ip" "$b/%_bindir/ip"
|
||||
%else
|
||||
ln -s "%_sbindir/ip" "$b/sbin/"
|
||||
mkdir -p "$b/bin"
|
||||
ln -sf "%_sbindir/ip" "$b/bin/ip"
|
||||
%endif
|
||||
for BIN in lnstat nstat routel ss; do
|
||||
ln -sf "%_sbindir/$BIN" "$b/%_bindir/$BIN"
|
||||
done
|
||||
mkdir -p "$b/%_docdir/%name"
|
||||
cp -an README* examples/bpf "$b/%_docdir/%name/"
|
||||
|
||||
# bugzilla.opensuse.org/1205632
|
||||
# You can't parse routel output anyway so it does not matter what we output
|
||||
rm -v "$b/%_mandir/man8/routel.8"
|
||||
cat >"$b/%_sbindir/routel" <<-EOF
|
||||
#!/bin/sh
|
||||
exec ip r l table all
|
||||
EOF
|
||||
|
||||
%fdupes %buildroot/%_prefix
|
||||
|
||||
%post
|
||||
%tmpfiles_create %_tmpfilesdir/%name.conf
|
||||
|
||||
%files
|
||||
%_bindir/lnstat
|
||||
%_bindir/nstat
|
||||
%_bindir/routel
|
||||
%_bindir/ss
|
||||
%_sbindir/*
|
||||
%_tmpfilesdir/%name.conf
|
||||
%ghost %dir %_rundir/netns
|
||||
%exclude %_sbindir/arpd
|
||||
%if 0%{?suse_version} >= 1550
|
||||
%_bindir/ip
|
||||
%else
|
||||
/sbin/*
|
||||
/bin/ip
|
||||
%endif
|
||||
%_mandir/man7/*
|
||||
%_mandir/man8/*
|
||||
%exclude %_mandir/man8/arpd.8*
|
||||
%_datadir/iproute2/
|
||||
%_libdir/tc/
|
||||
%_datadir/tc/
|
||||
%_docdir/%name/
|
||||
%license COPYING
|
||||
|
||||
%files -n libnetlink-devel
|
||||
%_includedir/*
|
||||
%_mandir/man3/libnetlink*
|
||||
%_libdir/lib*
|
||||
|
||||
%files bash-completion
|
||||
%_datadir/bash-completion/
|
||||
|
||||
%files arpd
|
||||
%_sbindir/arpd
|
||||
%_mandir/man8/arpd.8*
|
||||
|
||||
%changelog
|
2
iproute2.tmpfiles
Normal file
2
iproute2.tmpfiles
Normal file
@ -0,0 +1,2 @@
|
||||
#Type Path Mode User Group Age Argument
|
||||
d /run/netns 0755 root root - -
|
49
split-link-and-compile-steps-for-binaries.patch
Normal file
49
split-link-and-compile-steps-for-binaries.patch
Normal file
@ -0,0 +1,49 @@
|
||||
From: Marcus Meissner <meissner@suse.com>
|
||||
Date: Sat, 10 Jun 2017 14:29:22 +0000
|
||||
Subject: split link and compile steps for binaries
|
||||
Patch-mainline: Submitted - 20170804
|
||||
|
||||
Do not compile and link in one step so that CFLAGS and LDFLAGS are only
|
||||
applied to the phase they are intended for. This is needed for PIE default
|
||||
to work.
|
||||
---
|
||||
misc/Makefile | 17 +++++++++--------
|
||||
1 file changed, 9 insertions(+), 8 deletions(-)
|
||||
|
||||
Index: iproute2-6.3.0/misc/Makefile
|
||||
===================================================================
|
||||
--- iproute2-6.3.0.orig/misc/Makefile
|
||||
+++ iproute2-6.3.0/misc/Makefile
|
||||
@@ -9,23 +9,24 @@ include ../config.mk
|
||||
ifeq ($(HAVE_BERKELEY_DB),y)
|
||||
TARGETS += arpd
|
||||
endif
|
||||
+CFLAGS += -I$(DBM_INCLUDE)
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
ss: $(SSOBJ)
|
||||
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
|
||||
|
||||
-nstat: nstat.c
|
||||
- $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o nstat nstat.c $(LDLIBS) -lm
|
||||
+nstat: nstat.o
|
||||
+ $(QUIET_CC)$(CC) $(LDFLAGS) -o nstat nstat.o $(LDLIBS) -lm
|
||||
|
||||
-ifstat: ifstat.c
|
||||
- $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ifstat ifstat.c $(LDLIBS) -lm
|
||||
+ifstat: ifstat.o
|
||||
+ $(QUIET_CC)$(CC) $(LDFLAGS) -o ifstat ifstat.o $(LDLIBS) -lm
|
||||
|
||||
-rtacct: rtacct.c
|
||||
- $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o rtacct rtacct.c $(LDLIBS) -lm
|
||||
+rtacct: rtacct.o
|
||||
+ $(QUIET_CC)$(CC) $(LDFLAGS) -o rtacct rtacct.o $(LDLIBS) -lm
|
||||
|
||||
-arpd: arpd.c
|
||||
- $(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(CPPFLAGS) $(LDFLAGS) -o arpd arpd.c $(LDLIBS) -ldb
|
||||
+arpd: arpd.o
|
||||
+ $(QUIET_CC)$(CC) $(LDFLAGS) -o arpd arpd.o $(LDLIBS) -ldb
|
||||
|
||||
ssfilter.tab.c: ssfilter.y
|
||||
$(QUIET_YACC)$(YACC) -b ssfilter ssfilter.y
|
24
use-sysconf-_SC_CLK_TCK-if-HZ-undefined.patch
Normal file
24
use-sysconf-_SC_CLK_TCK-if-HZ-undefined.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From: Michal Kubecek <mkubecek@suse.cz>
|
||||
Date: Fri, 15 Jan 2016 07:30:15 +0100
|
||||
Subject: use sysconf(_SC_CLK_TCK) if HZ undefined
|
||||
Patch-mainline: No
|
||||
|
||||
---
|
||||
lib/utils.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
Index: iproute2-6.6.0/lib/utils.c
|
||||
===================================================================
|
||||
--- iproute2-6.6.0.orig/lib/utils.c
|
||||
+++ iproute2-6.6.0/lib/utils.c
|
||||
@@ -138,6 +138,10 @@ int get_long(long *val, const char *arg,
|
||||
return 0;
|
||||
}
|
||||
|
||||
+#ifndef HZ
|
||||
+#define HZ sysconf(_SC_CLK_TCK)
|
||||
+#endif
|
||||
+
|
||||
int get_integer(int *val, const char *arg, int base)
|
||||
{
|
||||
long res;
|
Loading…
x
Reference in New Issue
Block a user