alfred: upgrade package to latest release 2016.4 238/head
authorSven Eckelmann <sven@narfation.org>
Fri, 28 Oct 2016 07:50:00 +0000 (09:50 +0200)
committerSven Eckelmann <sven@narfation.org>
Fri, 28 Oct 2016 16:03:42 +0000 (18:03 +0200)
Signed-off-by: Sven Eckelmann <sven@narfation.org>
alfred/Makefile
alfred/patches/0001-alfred-vis-Fix-netlink-function-fallback.patch [deleted file]
alfred/patches/0002-alfred-vis-Fix-direct-neighbors-detection-with-origi.patch [deleted file]

index 319795a4cb06cd06911caf7699e8185aaf5616dc..09f62d4dda9cd2c43fd62e2e8bd74e22978d4021 100644 (file)
@@ -11,9 +11,9 @@ include $(TOPDIR)/rules.mk
 # The latest alfred git hash in PKG_REV can be obtained from https://git.open-mesh.org/alfred.git
 #
 PKG_NAME:=alfred
-PKG_VERSION:=2016.3
+PKG_VERSION:=2016.4
 PKG_RELEASE:=0
-PKG_MD5SUM:=8a33199b8926a960889d1cf08535ef63
+PKG_MD5SUM:=172501ca734ac584fa13f10dcfa708da
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
@@ -66,7 +66,6 @@ MAKE_ALFRED_FLAGS=\
 
 TARGET_CFLAGS  += -ffunction-sections -fdata-sections -flto
 TARGET_LDFLAGS += -Wl,--gc-sections -fuse-linker-plugin
-TARGET_CPPFLAGS += -D_GNU_SOURCE
 
 define Build/Compile
        CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
diff --git a/alfred/patches/0001-alfred-vis-Fix-netlink-function-fallback.patch b/alfred/patches/0001-alfred-vis-Fix-netlink-function-fallback.patch
deleted file mode 100644 (file)
index 7115273..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-From 9729239306edd6c0d122b0222626988f44d9b1cf Mon Sep 17 00:00:00 2001
-From: Sven Eckelmann <sven@narfation.org>
-Date: Thu, 22 Sep 2016 23:41:20 +0200
-Subject: [PATCH] alfred: vis: Fix netlink function fallback
-
-The netlink functions return -EOPNOTSUPP when the kernel doesn't support
-the netlink command. The caller can then fall back to debugfs. So check for
--EOPNOTSUPP and not EOPNOTSUPP.
-
-Fixes: bca55a86fecd ("alfred: vis: Add support for netlink")
-Signed-off-by: Sven Eckelmann <sven@narfation.org>
----
- vis/vis.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/vis/vis.c b/vis/vis.c
-index b865508..677f8aa 100644
---- a/vis/vis.c
-+++ b/vis/vis.c
-@@ -361,7 +361,7 @@ static int parse_transtable_local(struct globals *globals)
-       int ret;
-       ret = parse_transtable_local_netlink(globals);
--      if (ret != EOPNOTSUPP)
-+      if (ret != -EOPNOTSUPP)
-               return ret;
-       return parse_transtable_local_debugfs(globals);
-@@ -602,7 +602,7 @@ static int parse_orig_list(struct globals *globals)
-       int ret;
-       ret = parse_orig_list_netlink(globals);
--      if (ret != EOPNOTSUPP)
-+      if (ret != -EOPNOTSUPP)
-               return ret;
-       return parse_orig_list_debugfs(globals);
--- 
-2.9.3
-
diff --git a/alfred/patches/0002-alfred-vis-Fix-direct-neighbors-detection-with-origi.patch b/alfred/patches/0002-alfred-vis-Fix-direct-neighbors-detection-with-origi.patch
deleted file mode 100644 (file)
index 01a8510..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-From: Sven Eckelmann <sven@narfation.org>
-Date: Fri, 23 Sep 2016 15:45:12 +0200
-Subject: [PATCH] alfred: vis: Fix direct neighbors detection with originator netlink query
-
-Only entries in the originator table with the destination address equal to
-the originator address should be handled by alfred as actual neighbors.
-
-Fixes: bca55a86fecd ("alfred: vis: Add support for netlink")
-Signed-off-by: Sven Eckelmann <sven@narfation.org>
----
- vis/vis.c | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/vis/vis.c b/vis/vis.c
-index 94e583e..f4d13c7 100644
---- a/vis/vis.c
-+++ b/vis/vis.c
-@@ -453,6 +453,7 @@ err:
- static const int parse_orig_list_mandatory[] = {
-       BATADV_ATTR_ORIG_ADDRESS,
-+      BATADV_ATTR_NEIGH_ADDRESS,
-       BATADV_ATTR_TQ,
-       BATADV_ATTR_HARD_IFINDEX,
- };
-@@ -466,6 +467,7 @@ static int parse_orig_list_netlink_cb(struct nl_msg *msg, void *arg)
-       struct genlmsghdr *ghdr;
-       struct vis_list_entry *v_entry;
-       uint8_t *orig;
-+      uint8_t *neigh;
-       uint8_t tq;
-       uint32_t hardif;
-@@ -493,12 +495,16 @@ static int parse_orig_list_netlink_cb(struct nl_msg *msg, void *arg)
-               return NL_OK;
-       orig = nla_data(attrs[BATADV_ATTR_ORIG_ADDRESS]);
-+      neigh = nla_data(attrs[BATADV_ATTR_NEIGH_ADDRESS]);
-       tq = nla_get_u8(attrs[BATADV_ATTR_TQ]);
-       hardif = nla_get_u32(attrs[BATADV_ATTR_HARD_IFINDEX]);
-       if (tq < 1)
-               return NL_OK;
-+      if (memcmp(orig, neigh, ETH_ALEN) != 0)
-+              return NL_OK;
-+
-       v_entry = malloc(sizeof(*v_entry));
-       if (!v_entry)
-               return NL_OK;