Skip to content

Commit 8f5ed0f

Browse files
Red54mwarning
authored andcommitted
ndppd: update to version 0.2.6
Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com>
1 parent ab45dac commit 8f5ed0f

4 files changed

Lines changed: 16 additions & 29 deletions

File tree

ndppd/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=ndppd
11-
PKG_VERSION:=0.2.5
12-
PKG_RELEASE:=2
11+
PKG_VERSION:=0.2.6
12+
PKG_RELEASE:=1
1313

1414
# Latest release
1515
PKG_SOURCE_URL:=https://codeload.github.com/DanielAdolfsson/ndppd/tar.gz/$(PKG_VERSION)?
1616
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17-
PKG_HASH:=ee934167f8357f0bd0015e201a77fbe4d028c59e89dc98113805c6855e1c3992
17+
PKG_HASH:=969d438462e0c65a8c9060d8d263c5c47ba8145fb9aaa663864bbad11ad7eb7a
1818
PKG_LICENSE:=GPL-3.0-or-later
1919

2020
# Development snapshot
21-
#PKG_SOURCE_URL=git://github.com/Tuhox/ndppd.git
21+
#PKG_SOURCE_URL=git://github.com/DanielAdolfsson/ndppd.git
2222
#PKG_SOURCE_VERSION=master
2323
#PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
2424

ndppd/patches/0001-Version-bump.patch

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ Subject: [PATCH 1/3] Forgot to bump the version.
77
src/ndppd.h | 2 +-
88
1 file changed, 1 insertion(+), 1 deletion(-)
99

10-
diff --git a/src/ndppd.h b/src/ndppd.h
11-
index 57ba829..3e11221 100644
1210
--- a/src/ndppd.h
1311
+++ b/src/ndppd.h
1412
@@ -21,7 +21,7 @@
1513
#define NDPPD_NS_BEGIN namespace ndppd {
1614
#define NDPPD_NS_END }
1715

1816
-#define NDPPD_VERSION "0.2.4"
19-
+#define NDPPD_VERSION "0.2.5"
17+
+#define NDPPD_VERSION "0.2.6"
2018

2119
#include <assert.h>
2220

ndppd/patches/0002-Fixes-strerror_r-GNU-XSI.patch

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,21 @@ Subject: [PATCH 2/3] Fixes strerror_r GNU/XSI issue #40.
99
src/logger.h | 3 +++
1010
2 files changed, 15 insertions(+), 1 deletions(-)
1111

12-
diff --git a/src/logger.cc b/src/logger.cc
13-
index 6ddbea9..6ccb2a0 100644
1412
--- a/src/logger.cc
1513
+++ b/src/logger.cc
16-
@@ -84,6 +84,6 @@ std::string logger::err()
17-
{
18-
char buf[2048];
14+
@@ -89,7 +89,7 @@ std::string logger::err()
15+
return "Unknown error";
16+
return buf;
17+
#else
1918
- return strerror_r(errno, buf, sizeof(buf));
2019
+ return strerror_r_wrapper(strerror_r(errno, buf, sizeof(buf)), buf);
20+
#endif
2121
}
2222

23-
logger logger::error()
24-
@@ -221,4 +221,16 @@
23+
@@ -228,4 +228,16 @@ bool logger::verbosity(const std::string
2524
return false;
2625
}
27-
26+
2827
+// XSI-compliant: int
2928
+std::string logger::strerror_r_wrapper(int, char* s)
3029
+{
@@ -38,11 +37,9 @@ index 6ddbea9..6ccb2a0 100644
3837
+}
3938
+
4039
NDPPD_NS_END
41-
diff --git a/src/logger.h b/src/logger.h
42-
index 7d3d7db..0446595 100644
4340
--- a/src/logger.h
4441
+++ b/src/logger.h
45-
@@ -91,6 +91,9 @@ class logger {
42+
@@ -91,6 +91,9 @@ private:
4643

4744
static int _max_pri;
4845

@@ -52,4 +49,3 @@ index 7d3d7db..0446595 100644
5249

5350
};
5451

55-

ndppd/patches/0003-fix-poll-header.patch

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Subject: [PATCH 3/3] Fixes a compile warning when building with musl: #warning
1111
src/rule.h | 2 +-
1212
4 files changed, 4 insertions(+), 4 deletions(-)
1313

14-
diff --git a/src/iface.cc b/src/iface.cc
15-
index f569d3c..7cbb57f 100644
1614
--- a/src/iface.cc
1715
+++ b/src/iface.cc
1816
@@ -30,7 +30,7 @@
@@ -24,8 +22,6 @@ index f569d3c..7cbb57f 100644
2422

2523
#include <linux/filter.h>
2624

27-
diff --git a/src/iface.h b/src/iface.h
28-
index 9db59ab..df7ff35 100644
2925
--- a/src/iface.h
3026
+++ b/src/iface.h
3127
@@ -20,7 +20,7 @@
@@ -37,8 +33,6 @@ index 9db59ab..df7ff35 100644
3733
#include <net/ethernet.h>
3834

3935
#include "ndppd.h"
40-
diff --git a/src/proxy.h b/src/proxy.h
41-
index 8141b2a..9299d9a 100644
4236
--- a/src/proxy.h
4337
+++ b/src/proxy.h
4438
@@ -19,7 +19,7 @@
@@ -50,15 +44,14 @@ index 8141b2a..9299d9a 100644
5044

5145
#include "ndppd.h"
5246

53-
diff --git a/src/rule.h b/src/rule.h
54-
index 0c2f79a..23086e6 100644
5547
--- a/src/rule.h
5648
+++ b/src/rule.h
57-
@@ -20,6 +20,6 @@
49+
@@ -20,7 +20,7 @@
5850
#include <map>
51+
#include <list>
5952

6053
-#include <sys/poll.h>
6154
+#include <poll.h>
6255

6356
#include "ndppd.h"
64-
57+

0 commit comments

Comments
 (0)