package/ifmetric: new package
PATCH 1/1 package/ifmetric: new package
Add an upstream post-0.3 patch to fix netlink issues with modern kernels.
Signed-off-by Peter Korsgaard <[email protected]>
--- DEVELOPERS | 1 + package/Config.in | 1 + ...ETLINK-Packet-too-small-or-truncated-92-1.patch | 29 ++++++++++++++++++++++ package/ifmetric/Config.in | 10 ++++++++ package/ifmetric/ifmetric.hash | 4 +++ package/ifmetric/ifmetric.mk | 14 +++++++++++ 6 files changed, 59 insertions(+) create mode 100644 package/ifmetric/0001-Fix-issue-NETLINK-Packet-too-small-or-truncated-92-1.patch create mode 100644 package/ifmetric/Config.in create mode 100644 package/ifmetric/ifmetric.hash create mode 100644 package/ifmetric/ifmetric.mk
DEVELOPERS +1 -0
@@ -1746,6 +1746,7 @@ F: package/docker-compose/ F: package/dump1090/ F: package/flickcurl/ F: package/fscryptctl/ +F: package/ifmetric/ F: package/jo/ F: package/jose/ F: package/libfastjson/
package/Config.in +1 -0
@@ -1903,6 +1903,7 @@ menu "Networking applications" source "package/ibrdtn-tools/Config.in" source "package/ibrdtnd/Config.in" source "package/ifenslave/Config.in" + source "package/ifmetric/Config.in" source "package/ifplugd/Config.in" source "package/iftop/Config.in" source "package/ifupdown/Config.in"
package/ifmetric/0001-Fix-issue-NETLINK-Packet-too-small-or-truncated-92-1.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 0c80f9ead3eb1d938b3e8e68165c91e62db72de3 Mon Sep 17 00:00:00 2001 +From: Damjan Georgievski <[email protected]> +Date: Wed, 15 Aug 2012 00:54:38 +0200 +Subject: [PATCH] Fix issue: NETLINK: Packet too small or truncated! + 92!=16!=244 + +As reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514197#22 + +Signed-off-by: Peter Korsgaard <[email protected]> +--- + src/nlrequest.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/nlrequest.c b/src/nlrequest.c +index 99fd3d0..3a1f794 100644 +--- a/src/nlrequest.c ++++ b/src/nlrequest.c +@@ -44,7 +44,7 @@ int netlink_request(int s, struct nlmsghdr *n, int (*callback) (struct nlmsghdr + + for (;;) { + int bytes; +- char replybuf[2048]; ++ char replybuf[4096]; + struct nlmsghdr *p = (struct nlmsghdr *) replybuf; + + if ((bytes = recv(s, &replybuf, sizeof(replybuf), 0)) < 0) { +-- +2.11.0 +
package/ifmetric/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_IFMETRIC + bool "ifmetric" + help + Ifmetric is a Linux tool for setting the metrics of all IPv4 + routes attached to a given network interface@once. This + may be used to change the priority of routing IPv4 traffic + over the interface. Lower metrics correlate with higher + priorities. + + http://0pointer.de/lennart/projects/ifmetric/
package/ifmetric/ifmetric.hash new file +4 -0
@@ -0,0 +1,4 @@ +# Locally calculated +sha256 0fa8510a4e34e555f136f9df81d26618313f2d69a4880c0fb5967f19502f1aec ifmetric-0.3.tar.gz +sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 LICENSE +sha256 1e33d5a8750b4b3c2cb4fb89a916463f3c838f8eb361abbf72faf244c7dde771 README
package/ifmetric/ifmetric.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# ifmetric +# +################################################################################ + +IFMETRIC_VERSION = 0.3 +IFMETRIC_SITE = http://0pointer.de/lennart/projects/ifmetric +IFMETRIC_LICENSE = GPL-2.0+ +IFMETRIC_LICENSE_FILES = LICENSE README +# do not generate documentation +IFMETRIC_CONF_OPTS = --disable-lynx --disable-xmltoman + +$(eval $(autotools-package))
Signature · 1 line
2.11.0
PATCH 1/1 package/ifmetric: new package
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Add an upstream post-0.3 patch to fix netlink issues with modern kernels.
Signed-off-by Peter Korsgaard <[email protected]>
Sorry, this is naturally for next.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 package/ifmetric: new package
In reply to Peter KorsgaardQuoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Add an upstream post-0.3 patch to fix netlink issues with modern kernels.
Signed-off-by Peter Korsgaard <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard