feed/routing.git
5 years agobatman-adv: Use Linux 5.2 API again 485/head
Sven Eckelmann [Mon, 22 Jul 2019 07:54:49 +0000 (09:54 +0200)]
batman-adv: Use Linux 5.2 API again

The mac80211 package version was updated to a 5.2 based one in commit
0b2c42ced21a ("mac80211: Update to version 5.2-rc7"). The batman-adv module
must therefore no longer the pre-5.2 API.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoMerge pull request #483 from aparcar/luci-app-bmx7-transfer
Axel Neumann [Thu, 18 Jul 2019 17:31:21 +0000 (19:31 +0200)]
Merge pull request #483 from aparcar/luci-app-bmx7-transfer

luci-app-bmx7: transfer to luci.git

5 years agonodogsplash: Release 4.0.0 (#484)
Rob White [Mon, 15 Jul 2019 12:23:31 +0000 (13:23 +0100)]
nodogsplash: Release 4.0.0 (#484)

Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc and arm_cortex-a5_neon-vfpv4/

  * Introduce aes encryption of the query string passed to remote FAS, allowing authdir and client token to be transferred securely. Uses php-cli and php-openssl. These are required if encryption is enabled but are not dependencies [bluewavenet]
  * Introduce fasremotefqdn, specifying the FQDN of the remote FAS. This facilitates simplified support for FAS operation on shared hosting systems [bluewavenet]
  * Add a FAS php script supporting aes encrypted query string sent from NDS [bluewavenet]
  * Numerous Documentation updates [bluewavenet]
  * Remove unused pagesdir and imagesdir [mwarning]
  * Add Preauth script that displays images from remote servers [bluewavenet]
  * Use elegant check for valid ip addresses [mwarning]
  * openwrt initscript - add missing macmechanism in the config file [lynxis]

Signed-off-by: Rob White <rob@blue-wave.net>
5 years agoluci-app-bmx7: transfer to luci.git 483/head
Paul Spooren [Thu, 11 Jul 2019 09:06:43 +0000 (11:06 +0200)]
luci-app-bmx7: transfer to luci.git

The package was recently[0] moved to luci.git

[0]: https://github.com/openwrt/luci/commit/9aa507790e8a75ab8f52e267e29059a080d55122

Signed-off-by: Paul Spooren <mail@aparcar.org>
5 years agoMerge pull request #440 from tohojo/bird-203
Jo-Philipp Wich [Wed, 26 Jun 2019 17:27:47 +0000 (19:27 +0200)]
Merge pull request #440 from tohojo/bird-203

bird2: Bump to v2.0.4

5 years agoMerge pull request #441 from BKPepe/bird1
Jo-Philipp Wich [Wed, 26 Jun 2019 17:13:53 +0000 (19:13 +0200)]
Merge pull request #441 from BKPepe/bird1

bird1: update to version 1.6.6

5 years agoMerge pull request #479 from neheb/master
Jo-Philipp Wich [Wed, 26 Jun 2019 17:02:51 +0000 (19:02 +0200)]
Merge pull request #479 from neheb/master

Build fixes

5 years agocjdns: Do not build on ARC 479/head
Rosen Penev [Mon, 27 May 2019 23:48:46 +0000 (16:48 -0700)]
cjdns: Do not build on ARC

Is not supported by node.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
5 years agomcproxy: Fix compilation with uClibc-ng
Rosen Penev [Mon, 27 May 2019 07:04:01 +0000 (00:04 -0700)]
mcproxy: Fix compilation with uClibc-ng

uClibc-ng also defines __GLIBC__, which messes up the check.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
5 years agoMerge pull request #478 from ecsv/batadv-for-19.07
Simon Wunderlich [Sun, 16 Jun 2019 09:27:08 +0000 (11:27 +0200)]
Merge pull request #478 from ecsv/batadv-for-19.07

batman-adv: Add support for B.A.T.M.A.N. V hardif settings

5 years agobatman-adv: Don't try to set unconfigured ap_isolation for vlan 478/head
Sven Eckelmann [Sun, 16 Jun 2019 07:27:08 +0000 (09:27 +0200)]
batman-adv: Don't try to set unconfigured ap_isolation for vlan

The ap_isolation setting only supports boolean values. So setting an empty
string as ap_isolation is not supported by batctl.

Fixes: f5205d7d2434 ("batman-adv: upgrade package to latest release 2014.2.0")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Add support for hardif settings
Sven Eckelmann [Sat, 15 Jun 2019 07:25:05 +0000 (09:25 +0200)]
batman-adv: Add support for hardif settings

B.A.T.M.A.N. V support additional settings which are hardif specific. The
batadv_hardif proto has to expose them to allow automatic configuration.
The default configuration would be:

  config interface 'bat0_hardif_eth0'
   option proto 'batadv_hardif'
   option master 'bat0'
   option ifname 'eth0'
   option mtu '1536'
   option 'elp_interval' 500
   # string like '1mbit' is accepted instead of kbit for override
   option 'throughput_override' '0'

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatctl: Add support for hardif settings
Sven Eckelmann [Sat, 15 Jun 2019 07:18:51 +0000 (09:18 +0200)]
batctl: Add support for hardif settings

batctl currently supports settings which are either mesh interface or vlan
specific. But B.A.T.M.A.N. V introduced two additional settings which are
hard (slave) interface specific.

To support these, an additional command prefix called hardif is implemented
for some sysfs commands:

  $ batctl -m bat0 hardif eth0 ..

The usable commands with that are:

* elp_interval
* throughput_override

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoMerge pull request #475 from ecsv/batadv-2019.2
Simon Wunderlich [Sun, 2 Jun 2019 20:41:20 +0000 (22:41 +0200)]
Merge pull request #475 from ecsv/batadv-2019.2

batman-adv: Fix duplicated OGMs on NETDEV_UP

5 years agobatman-adv: Fix duplicated OGMs on NETDEV_UP 475/head
Sven Eckelmann [Sun, 2 Jun 2019 09:46:25 +0000 (11:46 +0200)]
batman-adv: Fix duplicated OGMs on NETDEV_UP

The state of slave interfaces are handled differently depending on whether
the interface is up or not. All active interfaces (IFF_UP) will transmit
OGMs. But for B.A.T.M.A.N. IV, also non-active interfaces are scheduling
(low TTL) OGMs on active interfaces. The code which setups and schedules
the OGMs must therefore already be called when the interfaces gets added as
slave interface and the transmit function must then check whether it has to
send out the OGM or not on the specific slave interface.

But v2016.3 moved the setup code from the enable function to the activate
function. The latter is called either when the added slave was already up
when batadv_hardif_enable_interface processed the new interface or when a
NETDEV_UP event was received for this slave interfac. As result, each
NETDEV_UP would schedule a new OGM worker for the interface and thus OGMs
would be send a lot more than expected.

Fixes: 549909f89dd7 ("batman-adv: upgrade package to latest release 2016.3")
Reported-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoMerge pull request #472 from yogo1212/batmand_whitespace
elektra42 [Mon, 27 May 2019 07:04:38 +0000 (09:04 +0200)]
Merge pull request #472 from yogo1212/batmand_whitespace

batmand: whitespace

5 years agobatmand: match loop format 472/head
Leon M. George [Fri, 24 May 2019 22:11:17 +0000 (00:11 +0200)]
batmand: match loop format

5 years agobatmand: fix whitespace
Leon M. George [Thu, 23 May 2019 23:17:41 +0000 (01:17 +0200)]
batmand: fix whitespace

5 years agoMerge pull request #471 from ecsv/batadv-2019.2
Simon Wunderlich [Fri, 24 May 2019 07:45:32 +0000 (09:45 +0200)]
Merge pull request #471 from ecsv/batadv-2019.2

batman-adv 2019.2

5 years agobatman-adv: upgrade package to latest release 2019.2 471/head
Sven Eckelmann [Thu, 23 May 2019 18:13:21 +0000 (20:13 +0200)]
batman-adv: upgrade package to latest release 2019.2

* support latest kernels (3.16 - 5.2)
* coding style cleanups and refactoring
* implement multicast-to-unicast support for multiple targets
* deprecate sysfs support and make it optional
* refresh DAT entry timeouts on incoming ARP Replies
* bugs squashed:

  - fix multicast tt/tvlv worker locking
  - drop roam tvlv handler when unregistering mesh interface

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatctl: upgrade package to latest release 2019.2
Sven Eckelmann [Thu, 23 May 2019 18:12:31 +0000 (20:12 +0200)]
batctl: upgrade package to latest release 2019.2

* coding style cleanups and refactoring
* add multicast_fanout setting subcommand
* implement netlink based support for remaining sysfs-only features
* drop support for deprecated log command support
* remove non-netlink support for translating MAC addresses to originators

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoalfred: upgrade package to latest release 2019.2
Sven Eckelmann [Thu, 23 May 2019 18:11:42 +0000 (20:11 +0200)]
alfred: upgrade package to latest release 2019.2

* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobird2: Bump to v2.0.4 440/head
Toke Høiland-Jørgensen [Mon, 14 Jan 2019 08:47:10 +0000 (09:47 +0100)]
bird2: Bump to v2.0.4

Bird 2.0.4 was released on March 1st. Remove upstreamed patches.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
5 years agonodogsplash: Release v3.3.2-1 (#468)
Rob White [Tue, 7 May 2019 20:38:40 +0000 (21:38 +0100)]
nodogsplash: Release v3.3.2-1 (#468)

Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc and arm_cortex-a5_neon-vfpv4/

  * Fix Issue introduced in v3.3.0 with the addition of Improvements towards usable IPv6 support, that caused CPD on client devices to fail with "Too Many Redirects" error. NDS now terminates gracefully with a console error if fasremoteip is set AND fasport=80  [bluewavenet]
  * Validate fasremoteip to ensure that if it is set, then it is a valid dotted format IPv4 address  [bluewavenet]
  * Numerous Documentation updates  [bluewavenet]
  * Fix to Known Issue on OpenWrt >18.x.x with v3.3.1. This was caused by misconfigured Makefile for libmicrohttpd; this has been fixed there [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
5 years agoMerge pull request #467 from lynxis/remove-smcroute
Jo-Philipp Wich [Tue, 30 Apr 2019 21:52:53 +0000 (23:52 +0200)]
Merge pull request #467 from lynxis/remove-smcroute

smcroute: remove package as it's orphaned

5 years agosmcroute: remove package as it's orphaned 467/head
Alexander Couzens [Tue, 23 Apr 2019 09:59:23 +0000 (11:59 +0200)]
smcroute: remove package as it's orphaned

If someone like to become the maintainer, please re-submit this package
to the general openwrt package repository
https://github.com/openwrt/packages

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
5 years agoMerge pull request #459 from pmelange/olsrd_0.9.7
Bastian Bittorf [Mon, 1 Apr 2019 05:30:42 +0000 (07:30 +0200)]
Merge pull request #459 from pmelange/olsrd_0.9.7

[OLSRd] Bump OLSRd version to 0.9.7

5 years agoMerge pull request #461 from ecsv/batadv-2019.1
Simon Wunderlich [Fri, 29 Mar 2019 12:32:50 +0000 (13:32 +0100)]
Merge pull request #461 from ecsv/batadv-2019.1

batman-adv 2019.1

5 years agobatman-adv: upgrade package to latest release 2019.1 461/head
Sven Eckelmann [Sun, 17 Mar 2019 08:35:50 +0000 (09:35 +0100)]
batman-adv: upgrade package to latest release 2019.1

* support latest kernels (3.16 - 5.1)
* coding style cleanups and refactoring
* implement meshif, hardif and vlan config interface via netlink
* snoop DHCP ACKs to improve DAT cache efficiency
* bugs squashed:

  - avoid potential reference counter underflows and use-after free errors for
    several objects
  - fix GCC warning when B.A.T.M.A.N. V is build in but cfg80211 is not
    available
  - reject too small VLAN packets before they are processed further

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatctl: upgrade package to latest release 2019.1
Sven Eckelmann [Sun, 17 Mar 2019 08:35:50 +0000 (09:35 +0100)]
batctl: upgrade package to latest release 2019.1

* coding style cleanups and refactoring
* introduce support for batadv meshif, hardif and vlan configuration via netlink
* replace multicast_mode with multicast_forceflood settings subcommand
* add hop_penalty setting subcommand

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoalfred: upgrade package to latest release 2019.1
Sven Eckelmann [Thu, 28 Mar 2019 18:40:20 +0000 (19:40 +0100)]
alfred: upgrade package to latest release 2019.1

* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatctl: Add package description per variant
Sven Eckelmann [Sun, 17 Mar 2019 08:32:33 +0000 (09:32 +0100)]
batctl: Add package description per variant

Fixes: 129986825219 ("batctl: Provide different variants")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agonodogsplash: Add missing install directories (#460)
Rob White [Mon, 25 Mar 2019 17:03:29 +0000 (17:03 +0000)]
nodogsplash: Add missing install directories (#460)

Add missing install directories in revised Makefile

Signed-off-by: Rob White rob@blue-wave.net
5 years agonodogsplash: Bump to v3.3.0-1 (#457)
Rob White [Mon, 25 Mar 2019 13:28:02 +0000 (13:28 +0000)]
nodogsplash: Bump to v3.3.0-1 (#457)

Signed-off-by: Rob White <rob@blue-wave.net>
5 years ago[OLSRd] Bump OLSRd version to 0.9.7 459/head
pmelange [Sat, 23 Mar 2019 13:16:40 +0000 (14:16 +0100)]
[OLSRd] Bump OLSRd version to 0.9.7

This patch bumps OLSRd from 0.9.6.2 to 0.9.7 (released 06-March-2019)

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
5 years agoMerge pull request #458 from adrianschmutzler/fixcommit
Simon Wunderlich [Wed, 20 Mar 2019 16:50:20 +0000 (17:50 +0100)]
Merge pull request #458 from adrianschmutzler/fixcommit

batman-adv: Fix uci commit target

5 years agobatman-adv: Fix uci commit target 458/head
Adrian Schmutzler [Tue, 19 Mar 2019 18:49:27 +0000 (19:49 +0100)]
batman-adv: Fix uci commit target

Although batman-adv config is cycled in config_foreach, changes
are made in the network config. Thus, this one has to be committed.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agonodogsplash: fix invalid pointer bug when clock is turned back (#456)
Moritz Warning [Thu, 14 Mar 2019 17:23:32 +0000 (18:23 +0100)]
nodogsplash: fix invalid pointer bug when clock is turned back (#456)

Signed-off-by: Moritz Warning <moritzwarning@web.de>
5 years agoMerge pull request #454 from dangowrt/master
Axel Neumann [Wed, 13 Mar 2019 21:44:14 +0000 (22:44 +0100)]
Merge pull request #454 from dangowrt/master

bmx7: update source to 2019030802

5 years agobird1: update to version 1.6.6 441/head
Josef Schlehofer [Wed, 13 Mar 2019 09:25:08 +0000 (10:25 +0100)]
bird1: update to version 1.6.6

Signed-off-by: Josef Schlehofer <josef.schlehofer@nic.cz>
5 years agobmx7: update source to 2019030802 454/head
Daniel Golle [Fri, 8 Mar 2019 02:58:35 +0000 (03:58 +0100)]
bmx7: update source to 2019030802

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 years agoMerge pull request #453 from ecsv/batadv-2019.0
Simon Wunderlich [Thu, 7 Mar 2019 16:04:54 +0000 (17:04 +0100)]
Merge pull request #453 from ecsv/batadv-2019.0

batman-adv: Split batadv proto in meshif and hardif part

5 years agobatman-adv: Split batadv proto in meshif and hardif part 453/head
Sven Eckelmann [Sun, 24 Feb 2019 16:51:13 +0000 (17:51 +0100)]
batman-adv: Split batadv proto in meshif and hardif part

batman-adv allows to configure three different objects:

* batadv hardif

  - network interface used by batadv meshif to transport the batman-adv
    packets
  - its master interface is set to the batadv meshif

* batadv (meshif/softif)

  - virtual interface that emulates a normal 802.3 interface on top
  - encapsulates traffic and forwards it via the batadv hardifs

* batadv vlan

  - potential VLAN ID on top of batadv meshif
  - allows filtering of traffic from specific VIDs

While batadv vlan objects were already represented as an own proto
"batadv_vlan", the batadv meshif could never be fully configured using
/etc/config/network. Instead, parts of its configuration were stored in
/etc/config/batman_adv and some in the interfaces with the "batadv" proto.

To increase the confusion, the "batadv" proto wasn't used to define the
batadv meshif but to identify batadv (slave) hardifs. The batman-adv
meshifs were also never created directly but only when a hardif was
configured. The actual modification of the configuration settings was then
applied using a hotplug script hack. The batadv meshif network interface
could therefore only be created when an hardif was available and not
manipulated with ifup/ifdown. Also `/etc/init.d/network reload` didn't
modify the batadv meshif interface configuration correctly.

The "batadv" is now renamed to "batadv_hardif" and a new "batadv" proto is
used to configure the main (meshif) network interface with all its
configuration.

A simple network configuration with WiFi & ethernet interfaces and static
IP on top of bat0 would look like:

  # batadv meshif bat0
  config interface 'bat0'
   option proto 'batadv'
   option routing_algo 'BATMAN_IV'
   option aggregated_ogms 1
   option ap_isolation 0
   option bonding 0
   option fragmentation 1
   #option gw_bandwidth '10000/2000'
   option gw_mode 'off'
   #option gw_sel_class 20
   option log_level 0
   option orig_interval 1000
   option bridge_loop_avoidance 1
   option distributed_arp_table 1
   option multicast_mode 1
   option network_coding 0
   option hop_penalty 30
   option isolation_mark '0x00000000/0x00000000'

  # add *single* wifi-iface with network bat0_hardif_wlan as hardif to bat0
  config interface 'bat0_hardif_wlan'
   option mtu '1536'
   option proto 'batadv_hardif'
   option master 'bat0'
   # option ifname is filled out by the wifi-iface

  # add eth0 as hardif to bat0
  config interface 'bat0_hardif_eth0'
   option proto 'batadv_hardif'
   option master 'bat0'
   option ifname 'eth0'
   option mtu '1536'

  # configure IP on bat0
  config interface 'bat0_lan'
   option ifname 'bat0'
   option proto 'static'
   option ipaddr '192.168.1.1'
   option netmask '255.255.255.0'
   option ip6assign '60'

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoMerge pull request #451 from ecsv/batadv-2019.0
Simon Wunderlich [Thu, 7 Mar 2019 15:56:37 +0000 (16:56 +0100)]
Merge pull request #451 from ecsv/batadv-2019.0

batman-adv: finish config batctl usage & drop unused compat code

5 years agobatman-adv: use batctl for configuration of hop_penalty 451/head
Sven Eckelmann [Fri, 22 Feb 2019 20:47:40 +0000 (21:47 +0100)]
batman-adv: use batctl for configuration of hop_penalty

hop_penalty is the last remaining setting which is directly writing to
sysfs instead of using a implementation (sysfs vs. netlink) abstraction
layer. batctl now provides a wrapper function that allows the script to
directly use it to take care of communicating with the driver.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatctl: Add support for hop_penalty settings command
Sven Eckelmann [Fri, 22 Feb 2019 21:31:44 +0000 (22:31 +0100)]
batctl: Add support for hop_penalty settings command

The batman-adv scripts are still using sysfs for setting the hop_penalty.
Since the sysfs is deprecated, the batctl interface should be used to make
it independent of implementation details (sysfs vs. netlink).

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: use batctl for configuration of gw_mode
Sven Eckelmann [Fri, 22 Feb 2019 20:47:40 +0000 (21:47 +0100)]
batman-adv: use batctl for configuration of gw_mode

The batctl tool should be used for modifying settings in the batman-adv
driver to keep the scripts consistent and allow to use the correct way of
communicating with the kernel (sysfs vs. netlink).

The gw_mode, gw_bandwidth and gw_sel_class options are all handled by
the same gw_mode command in batctl and thus have to be combined depending
on the "gw_mode" value.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Drop cfg80211_get_station memset workaround
Sven Eckelmann [Fri, 22 Feb 2019 19:40:11 +0000 (20:40 +0100)]
batman-adv: Drop cfg80211_get_station memset workaround

The actual memset fix for cfg80211_get_station's sinfo is already part of
the mac80211 package and doesn't have to be shipped anymore with
batman-adv.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Drop compat-hack for __poll_t
Sven Eckelmann [Fri, 22 Feb 2019 19:19:42 +0000 (20:19 +0100)]
batman-adv: Drop compat-hack for __poll_t

__poll_t is already defined by the mac80211's backports and
doesn't have to be redefined in the compat-hacks.h.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Drop compat-hack for from_timer
Sven Eckelmann [Fri, 22 Feb 2019 19:19:42 +0000 (20:19 +0100)]
batman-adv: Drop compat-hack for from_timer

from_timer is already defined by the mac80211's backports and
doesn't have to be redefined in the compat-hacks.h.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Drop compat-hack for skb_put*
Sven Eckelmann [Fri, 22 Feb 2019 19:19:42 +0000 (20:19 +0100)]
batman-adv: Drop compat-hack for skb_put*

skb_put* is already defined by the mac80211's backports and
doesn't have to be redefined in the compat-hacks.h.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Drop compat-hack for nla_put_u64_64bit
Sven Eckelmann [Fri, 22 Feb 2019 19:19:42 +0000 (20:19 +0100)]
batman-adv: Drop compat-hack for nla_put_u64_64bit

nla_put_u64_64bit is already defined by the mac80211's backports and
doesn't have to be redefined in the compat-hacks.h.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Drop compat-hack for netif_trans_update
Sven Eckelmann [Fri, 22 Feb 2019 19:19:42 +0000 (20:19 +0100)]
batman-adv: Drop compat-hack for netif_trans_update

netif_trans_update is already defined by the mac80211's backports and
doesn't have to be redefined in the compat-hacks.h.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Drop redefinition of NL80211_STA_INFO_EXPECTED_THROUGHPUT
Sven Eckelmann [Fri, 22 Feb 2019 19:19:42 +0000 (20:19 +0100)]
batman-adv: Drop redefinition of NL80211_STA_INFO_EXPECTED_THROUGHPUT

NL80211_STA_INFO_EXPECTED_THROUGHPUT is defined by the mac80211 package and
doesn't have to be redefined in the compat-hacks.h.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatman-adv: Drop unused compat-hacks.patch
Sven Eckelmann [Fri, 22 Feb 2019 19:04:35 +0000 (20:04 +0100)]
batman-adv: Drop unused compat-hacks.patch

The linux/build_bug.h is already provided by mac80211's backports. It is
not needed anymore to adjust the includes to use the older linux/bug.h

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoMerge pull request #448 from SvenRoederer/patch-1
Simon Wunderlich [Fri, 22 Feb 2019 18:30:34 +0000 (19:30 +0100)]
Merge pull request #448 from SvenRoederer/patch-1

batctl: fix wrong binary-name for batctl-default

5 years agoMerge pull request #450 from dangowrt/bmx7-2018122901
Axel Neumann [Thu, 21 Feb 2019 08:10:03 +0000 (09:10 +0100)]
Merge pull request #450 from dangowrt/bmx7-2018122901

bmx7: update to git snapshot as of 2018-12-29: Use MbedTLS 2.8.0

5 years agobmx7: update to git snapshot as of 2018-12-29 450/head
Daniel Golle [Wed, 20 Feb 2019 13:05:41 +0000 (14:05 +0100)]
bmx7: update to git snapshot as of 2018-12-29

* fixes mbedTLS string constant deprecation build breakage
* obsoletes local patch

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 years agobatctl: fix wrong binary-name for batctl-default 448/head
Sven Roederer [Mon, 18 Feb 2019 21:40:24 +0000 (22:40 +0100)]
batctl: fix wrong binary-name for batctl-default

* correct binary for batctl-default to /usr/libexec/batctl-default
* while at it fix description of batctl-full

Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
5 years agoMerge pull request #446 from ecsv/batadv-2019.0
Simon Wunderlich [Mon, 4 Feb 2019 09:12:51 +0000 (10:12 +0100)]
Merge pull request #446 from ecsv/batadv-2019.0

batman-adv 2019.0

5 years agobatman-adv: upgrade package to latest release 2019.0 446/head
Sven Eckelmann [Sun, 27 Jan 2019 15:28:23 +0000 (16:28 +0100)]
batman-adv: upgrade package to latest release 2019.0

* support latest kernels (3.16 - 5.0)
* coding style cleanups and refactoring
* allow to enable debug tracing without full batman-adv debugfs support
* enable inconsistency reporting for most netlink dump commands
* bugs squashed:

  - avoid unnecessary kernel warning (panic) during detection of interface loops
  - work around incorrect ethernet header offset in transmit code path

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatctl: upgrade package to latest release 2019.0
Sven Eckelmann [Sun, 27 Jan 2019 15:28:23 +0000 (16:28 +0100)]
batctl: upgrade package to latest release 2019.0

* coding style cleanups and refactoring
* add gateway selection manpage section for B.A.T.M.A.N. V
* bugs squashed:

  - re-integrate support for translation table unicast/multicast filter
  - avoid incorrect warning about disabled mesh interface when debugfs
    support is not enabled in batman-adv

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoalfred: upgrade package to latest release 2019.0
Sven Eckelmann [Sun, 27 Jan 2019 15:28:23 +0000 (16:28 +0100)]
alfred: upgrade package to latest release 2019.0

* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoMerge pull request #445 from diizzyy/patch-1
Moritz Warning [Thu, 31 Jan 2019 18:08:51 +0000 (19:08 +0100)]
Merge pull request #445 from diizzyy/patch-1

nodogsplash: libmicrohttpd-no-ssl -> libmicrohttpd

5 years agonodogsplash: libmicrohttpd-no-ssl -> libmicrohttpd 445/head
Daniel Engberg [Thu, 31 Jan 2019 14:50:56 +0000 (15:50 +0100)]
nodogsplash: libmicrohttpd-no-ssl -> libmicrohttpd

Due to rearrangements of the libmicrohttpd the non
ssl variant is now called libmicrohttpd.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
5 years agoMerge pull request #444 from dedeckeh/pr_nat46
Jo-Philipp Wich [Sun, 27 Jan 2019 17:26:25 +0000 (18:26 +0100)]
Merge pull request #444 from dedeckeh/pr_nat46

nat46: drop from repo

5 years agonat46: drop from repo 444/head
Hans Dedecker [Sun, 27 Jan 2019 15:00:28 +0000 (16:00 +0100)]
nat46: drop from repo

Move nat46 and 464xlat to OpenWrt base repo

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
5 years agobatman-adv: use batctl for configuration
Sven Eckelmann [Sun, 6 Jan 2019 12:24:21 +0000 (13:24 +0100)]
batman-adv: use batctl for configuration

The batctl binary is currently optional for batman-adv installations. But
new configuration settings will only be exposed via generic netlink. The
batctl tool will therefore be required to modify them.

batctl must therefore no longer depend on batman-adv but batman-adv must
depend on batctl. Some already implemented settings are already moved to
batctl.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agobatctl: Provide different variants
Sven Eckelmann [Sun, 6 Jan 2019 12:23:42 +0000 (13:23 +0100)]
batctl: Provide different variants

The batctl binary is currently optional for batman-adv installations. But
new configuration settings will only be exposed via generic netlink. The
batctl tool will therefore be required to modify them.

To also fit batctl in some of the smaller devices, a new variant
batctl-tiny is build which only provides the settings subcommands. The
batctl-default variant is equal to the old batctl package and batctl-full
also provides the commands which were disabled until now.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
5 years agoMerge pull request #437 from rogerpueyo/luci-app-bmx6-graph-sys-exec
Pau [Fri, 11 Jan 2019 08:52:46 +0000 (09:52 +0100)]
Merge pull request #437 from rogerpueyo/luci-app-bmx6-graph-sys-exec

luci-app-bmx6: Avoid race condition in bmx6json.lua get()

5 years agoMerge pull request #438 from cotequeiroz/hnetd_openssl-1.1
Moritz Warning [Fri, 11 Jan 2019 00:17:10 +0000 (01:17 +0100)]
Merge pull request #438 from cotequeiroz/hnetd_openssl-1.1

hnetd: add compatiblity with openssl 1.1.x

5 years agoluci-app-bmx7: show mDNS menu if available
p4u [Thu, 10 Jan 2019 19:30:01 +0000 (20:30 +0100)]
luci-app-bmx7: show mDNS menu if available

Signed-off-by: p4u <p4u@dabax.net>
5 years agohnetd: add compatiblity with openssl 1.1.x 438/head
Eneas U de Queiroz [Thu, 13 Dec 2018 02:25:16 +0000 (00:25 -0200)]
hnetd: add compatiblity with openssl 1.1.x

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
5 years agoluci-app-bmx6: Avoid race condition in bmx6json.lua get() 437/head
Roger Pueyo Centelles [Sun, 9 Dec 2018 19:55:05 +0000 (20:55 +0100)]
luci-app-bmx6: Avoid race condition in bmx6json.lua get()

The network topology of a BMX6 mesh can be obtained by asking all the nodes
about their links via the bmx6-info script. The wget() function in the
bmx6json.lua file is part of the process, but it often returns nil, even if
the remote data can actually be fetched, in what seems to be a race condition.
By calling the sys.exec("") function empty, the race condition disappears.

Dirty fix to https://github.com/openwrt-routing/packages/issues/436.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
5 years agoMerge pull request #435 from rogerpueyo/bmx6-graph-tunnels
Pau [Sat, 8 Dec 2018 21:26:04 +0000 (22:26 +0100)]
Merge pull request #435 from rogerpueyo/bmx6-graph-tunnels

luci-app-bmx6: Fix corner case in bmx6-info?tunnels

5 years agoluci-app-bmx6: Fix corner case in bmx6-info?tunnels 435/head
Roger Pueyo Centelles [Sat, 8 Dec 2018 21:20:42 +0000 (22:20 +0100)]
luci-app-bmx6: Fix corner case in bmx6-info?tunnels

The bmx6-info script will return null when no tunnels are known to BMX6.
However, the "Graph" and the "Tunnels" pages expect a JSON structure with an
array of tunnels. In case no tunnels are known to BMX6, bmx6-info now returns
'{ "tunnels" : [] }'.

Fixes #434

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
5 years agoMerge pull request #433 from rogerpueyo/bmx6-graph
Pau [Sat, 8 Dec 2018 21:12:52 +0000 (22:12 +0100)]
Merge pull request #433 from rogerpueyo/bmx6-graph

luci-app-bmx6: Fix URL of network topology JSON file

5 years agoluci-app-bmx6: Fix URL of network topology JSON file 433/head
Roger Pueyo Centelles [Sat, 8 Dec 2018 21:02:48 +0000 (22:02 +0100)]
luci-app-bmx6: Fix URL of network topology JSON file

The JavaScript code of the network graph tried to fetch the topology from
%HOST/cgi-bin/luci/status/bmx6/topology, but the topology entry is now located
at admin->network->BMX6 (i.e., %HOST/cgi-bin/luci/admin/network/BMX6/topology).

Fixes #432

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
5 years agoMerge branch 'p4u/luci-app-bmx7/refactory'
p4u [Fri, 7 Dec 2018 18:15:16 +0000 (19:15 +0100)]
Merge branch 'p4u/luci-app-bmx7/refactory'

5 years agoMerge pull request #431 from rogerpueyo/p4u/luci-app-bmx7/refactory
Pau [Fri, 7 Dec 2018 17:44:19 +0000 (18:44 +0100)]
Merge pull request #431 from rogerpueyo/p4u/luci-app-bmx7/refactory

Fix bmx7-info indentation and "$info" call

5 years agoluci-app-bmx7: fix bmx7-info script's "$info" call 431/head
Roger Pueyo Centelles [Fri, 7 Dec 2018 17:04:10 +0000 (18:04 +0100)]
luci-app-bmx7: fix bmx7-info script's "$info" call

This commit fixes a bug in bmx7-info script's "$info" call when no
interfaces are being used by BMX7, or when no links have been
established. In those cases, the generated JSON output struct contained
extra commas, which made it invalid.

Closes #430

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
5 years agoluci-app-bmx7: fix bmx7-info script's indentation
Roger Pueyo Centelles [Fri, 7 Dec 2018 16:47:22 +0000 (17:47 +0100)]
luci-app-bmx7: fix bmx7-info script's indentation

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
5 years agoluci-app-bmx7: update version, dependencies and maintainer
p4u [Thu, 6 Dec 2018 11:25:51 +0000 (12:25 +0100)]
luci-app-bmx7: update version, dependencies and maintainer

Signed-off-by: p4u <p4u@dabax.net>
5 years agoMerge pull request #429 from ecsv/batadv-2018.4
Simon Wunderlich [Fri, 7 Dec 2018 08:52:46 +0000 (09:52 +0100)]
Merge pull request #429 from ecsv/batadv-2018.4

batctl: Fix parsing of optional debug table command parameters

5 years agoluci-app-bmx7: refactory, multiple fixes and add topology graph
p4u [Thu, 6 Dec 2018 11:17:49 +0000 (12:17 +0100)]
luci-app-bmx7: refactory, multiple fixes and add topology graph

Signed-off-by: p4u <p4u@dabax.net>
5 years agobatctl: Fix parsing of optional debug table command parameters 429/head
Sven Eckelmann [Thu, 6 Dec 2018 08:21:15 +0000 (09:21 +0100)]
batctl: Fix parsing of optional debug table command parameters

The commands which should have no support for -t/-u/-m/-i were allowed to
accept these parameters but commands which should have accepted them were
denying them.

Fixes: 8936141bf038 ("batctl: upgrade package to latest release 2018.4")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agoMerge pull request #427 from ecsv/batadv-2018.4
Simon Wunderlich [Thu, 15 Nov 2018 09:12:33 +0000 (10:12 +0100)]
Merge pull request #427 from ecsv/batadv-2018.4

batman-adv 2018.4

6 years agobatman-adv: upgrade package to latest release 2018.4 427/head
Sven Eckelmann [Tue, 6 Nov 2018 09:49:18 +0000 (10:49 +0100)]
batman-adv: upgrade package to latest release 2018.4

* support latest kernels (3.16 - 4.20)
* coding style cleanups and refactoring
* improve tx performance by avoiding unnecessary locking
* add help messages regarding deprecation of debugfs files
* support for debug message tracepoints
* explicit ELP padding to allow TVLVs in the future
* bugs squashed:

  - fix skb_over_panic for merged fragments with small tailroom

Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agobatctl: upgrade package to latest release 2018.4
Sven Eckelmann [Wed, 14 Nov 2018 20:49:25 +0000 (21:49 +0100)]
batctl: upgrade package to latest release 2018.4

* coding style cleanups and refactoring
* correction of manpage spelling errors
* new subcommand "event" to receive netlink notifications
* infrastructure to disable commands during build time
* drop of the legacy vis subcommands

Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agoalfred: upgrade package to latest release 2018.4
Sven Eckelmann [Wed, 14 Nov 2018 20:50:02 +0000 (21:50 +0100)]
alfred: upgrade package to latest release 2018.4

* bugs squashed:

  - fixed detection of own IPv4 packets
  - use manual IPv4 ARP requests to retrieve MAC of neighbors

Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agoMerge pull request #426 from robimarko/babeld-1.8.4
zorun [Sun, 11 Nov 2018 09:11:29 +0000 (10:11 +0100)]
Merge pull request #426 from robimarko/babeld-1.8.4

babeld: Update to version 1.8.4

6 years agobabeld: Update to version 1.8.4 426/head
Robert Marko [Sat, 10 Nov 2018 23:34:59 +0000 (00:34 +0100)]
babeld: Update to version 1.8.4

9 November 2018: babeld-1.8.4

  * Fixed a bug that discarded pipelined commands received on the local
    configuration interface.
* Added the per-interface option rfc6126-compatible.

Signed-off-by: Robert Marko <robimarko@gmail.com>
6 years agobatman-adv: Re-add kmod-lib-crc16 back to dependency line
Sven Eckelmann [Mon, 22 Oct 2018 10:24:10 +0000 (12:24 +0200)]
batman-adv: Re-add kmod-lib-crc16 back to dependency line

The OpenWrt dependency builder cannot extract the crc16 dependency from
the KMOD_BATMAN_ADV_BLA dependencies. They have to be specified directly in
the OpenWrt Makefile's DEPENDS line to avoid error when BLA is enabled:

  Package kmod-batman-adv is missing dependencies for the following libraries:
  crc16.ko

Reported-by: Lech Perczak <lech.perczak@gmail.com>
Fixes: 0db66160aaab ("batman-adv: Sync config options with kernel Kconfig")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agoMerge pull request #421 from ecsv/batadv-2018.3
Simon Wunderlich [Thu, 18 Oct 2018 13:01:53 +0000 (15:01 +0200)]
Merge pull request #421 from ecsv/batadv-2018.3

batman-adv: Cleanup of configuration options

6 years agobatman-adv: Remove unused dependency kmod-crypto-crc32c 421/head
Sven Eckelmann [Sun, 14 Oct 2018 15:37:29 +0000 (17:37 +0200)]
batman-adv: Remove unused dependency kmod-crypto-crc32c

The translation table code from batman-adv is only using the function
crc32c which is part of kmod-lib-crc32c. The kmod-crypto-crc32c is then
only used by kmod-lib-crc32c but not batman-adv.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agobatman-adv: Use the kernel style Kconfig symbols
Sven Eckelmann [Sun, 14 Oct 2018 14:40:43 +0000 (16:40 +0200)]
batman-adv: Use the kernel style Kconfig symbols

Kernel modules like ath9k and ath10k are using the same Kconfig option
symbols as used in the kernel. This makes it easier to share them between
these two projects. A similar approach should be used for the batman-adv
module.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agobatman-adv: Sync config options with kernel Kconfig
Sven Eckelmann [Sun, 14 Oct 2018 14:24:20 +0000 (16:24 +0200)]
batman-adv: Sync config options with kernel Kconfig

The kernel already provides all available kernel options for batman-adv and
even includes more verbose descriptions of each option. Importing this
Kconfig (with minor adjustments) file as Config.in allows to share most
information between kernel and OpenWrt.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agobatman-adv: Disable MCAST during compilation
Sven Eckelmann [Sun, 14 Oct 2018 14:58:01 +0000 (16:58 +0200)]
batman-adv: Disable MCAST during compilation

The multicast optimization compile option is disabled by default in the
Kconfig of batman-adv. The out-of-tree module should keep this setting in
sync and thus has to also disable the build of multicast optimization by
default.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agobatman-adv: Order Kconfig config symbols like kernel
Sven Eckelmann [Sun, 14 Oct 2018 14:50:23 +0000 (16:50 +0200)]
batman-adv: Order Kconfig config symbols like kernel

The options in the kernel Kconfig have a different order than the one in
the OptionWrt Config.in. This makes it unnecessary hard to compare these
two files.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
6 years agobatman-adv: Add DEBUG_LOG -> DEBUGFS dependency
Sven Eckelmann [Sun, 14 Oct 2018 14:01:46 +0000 (16:01 +0200)]
batman-adv: Add DEBUG_LOG -> DEBUGFS dependency

The debug log is only available when the debugfs is also enabled. This
must be reflected in Kconfig to avoid incompatible selection of batman-adv
options.

Signed-off-by: Sven Eckelmann <sven@narfation.org>