mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 19:14:31 +04:00
batman-adv: update to version 2025.4
* support latest kernels (5.4 - 6.18) * removed network coding (C.A.T.W.O.M.A.N.) support * coding style cleanups and refactoring * bugs squashed: - release references to inactive interfaces on netlink queries Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
@@ -43,19 +43,6 @@ config BATMAN_ADV_DAT
|
|||||||
mesh networks. If you think that your network does not need
|
mesh networks. If you think that your network does not need
|
||||||
this option you can safely remove it and save some space.
|
this option you can safely remove it and save some space.
|
||||||
|
|
||||||
config BATMAN_ADV_NC
|
|
||||||
bool "Network Coding"
|
|
||||||
depends on PACKAGE_kmod-batman-adv
|
|
||||||
help
|
|
||||||
This option enables network coding, a mechanism that aims to
|
|
||||||
increase the overall network throughput by fusing multiple
|
|
||||||
packets in one transmission.
|
|
||||||
Note that interfaces controlled by batman-adv must be manually
|
|
||||||
configured to have promiscuous mode enabled in order to make
|
|
||||||
network coding work.
|
|
||||||
If you think that your network does not need this feature you
|
|
||||||
can safely disable it and save some space.
|
|
||||||
|
|
||||||
config BATMAN_ADV_MCAST
|
config BATMAN_ADV_MCAST
|
||||||
bool "Multicast optimisation"
|
bool "Multicast optimisation"
|
||||||
depends on PACKAGE_kmod-batman-adv
|
depends on PACKAGE_kmod-batman-adv
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=batman-adv
|
PKG_NAME:=batman-adv
|
||||||
PKG_VERSION:=2025.3
|
PKG_VERSION:=2025.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
||||||
PKG_HASH:=be0823a0936bf59e2af2d115a7e26317f8220b998f4833257465af2b6ffe1ce8
|
PKG_HASH:=62490a8f8b58c02e819216f3e963249984645d3e460156a043b73fc53e24f86d
|
||||||
PKG_EXTMOD_SUBDIRS:=net/batman-adv
|
PKG_EXTMOD_SUBDIRS:=net/batman-adv
|
||||||
|
|
||||||
PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
|
PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
|
||||||
@@ -23,7 +23,6 @@ PKG_CONFIG_DEPENDS += \
|
|||||||
CONFIG_BATMAN_ADV_BATMAN_V \
|
CONFIG_BATMAN_ADV_BATMAN_V \
|
||||||
CONFIG_BATMAN_ADV_BLA \
|
CONFIG_BATMAN_ADV_BLA \
|
||||||
CONFIG_BATMAN_ADV_DAT \
|
CONFIG_BATMAN_ADV_DAT \
|
||||||
CONFIG_BATMAN_ADV_NC \
|
|
||||||
CONFIG_BATMAN_ADV_MCAST \
|
CONFIG_BATMAN_ADV_MCAST \
|
||||||
CONFIG_BATMAN_ADV_DEBUG \
|
CONFIG_BATMAN_ADV_DEBUG \
|
||||||
CONFIG_BATMAN_ADV_TRACING
|
CONFIG_BATMAN_ADV_TRACING
|
||||||
@@ -63,7 +62,6 @@ PKG_EXTRA_KCONFIG:= \
|
|||||||
CONFIG_BATMAN_ADV_BLA=$(if $(CONFIG_BATMAN_ADV_BLA),y,n) \
|
CONFIG_BATMAN_ADV_BLA=$(if $(CONFIG_BATMAN_ADV_BLA),y,n) \
|
||||||
CONFIG_BATMAN_ADV_DAT=$(if $(CONFIG_BATMAN_ADV_DAT),y,n) \
|
CONFIG_BATMAN_ADV_DAT=$(if $(CONFIG_BATMAN_ADV_DAT),y,n) \
|
||||||
CONFIG_BATMAN_ADV_MCAST=$(if $(CONFIG_BATMAN_ADV_MCAST),y,n) \
|
CONFIG_BATMAN_ADV_MCAST=$(if $(CONFIG_BATMAN_ADV_MCAST),y,n) \
|
||||||
CONFIG_BATMAN_ADV_NC=$(if $(CONFIG_BATMAN_ADV_NC),y,n) \
|
|
||||||
CONFIG_BATMAN_ADV_BATMAN_V=$(if $(CONFIG_BATMAN_ADV_BATMAN_V),y,n) \
|
CONFIG_BATMAN_ADV_BATMAN_V=$(if $(CONFIG_BATMAN_ADV_BATMAN_V),y,n) \
|
||||||
CONFIG_BATMAN_ADV_TRACING=$(if $(CONFIG_BATMAN_ADV_TRACING),y,n) \
|
CONFIG_BATMAN_ADV_TRACING=$(if $(CONFIG_BATMAN_ADV_TRACING),y,n) \
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ mv_batadv_config_section() {
|
|||||||
local isolation_mark
|
local isolation_mark
|
||||||
local log_level
|
local log_level
|
||||||
local multicast_mode
|
local multicast_mode
|
||||||
local network_coding
|
|
||||||
local orig_interval
|
local orig_interval
|
||||||
|
|
||||||
config_get aggregated_ogms "${section}" aggregated_ogms
|
config_get aggregated_ogms "${section}" aggregated_ogms
|
||||||
@@ -61,7 +60,6 @@ mv_batadv_config_section() {
|
|||||||
config_get isolation_mark "${section}" isolation_mark
|
config_get isolation_mark "${section}" isolation_mark
|
||||||
config_get log_level "${section}" log_level
|
config_get log_level "${section}" log_level
|
||||||
config_get multicast_mode "${section}" multicast_mode
|
config_get multicast_mode "${section}" multicast_mode
|
||||||
config_get network_coding "${section}" network_coding
|
|
||||||
config_get orig_interval "${section}" orig_interval
|
config_get orig_interval "${section}" orig_interval
|
||||||
|
|
||||||
# update section in case it exists
|
# update section in case it exists
|
||||||
@@ -78,7 +76,6 @@ mv_batadv_config_section() {
|
|||||||
[ -n "${isolation_mark}" ] && uci set network."${section}".isolation_mark="${isolation_mark}"
|
[ -n "${isolation_mark}" ] && uci set network."${section}".isolation_mark="${isolation_mark}"
|
||||||
[ -n "${log_level}" ] && uci set network."${section}".log_level="${log_level}"
|
[ -n "${log_level}" ] && uci set network."${section}".log_level="${log_level}"
|
||||||
[ -n "${multicast_mode}" ] && uci set network."${section}".multicast_mode="${multicast_mode}"
|
[ -n "${multicast_mode}" ] && uci set network."${section}".multicast_mode="${multicast_mode}"
|
||||||
[ -n "${network_coding}" ] && uci set network."${section}".network_coding="${network_coding}"
|
|
||||||
[ -n "${orig_interval}" ] && uci set network."${section}".orig_interval="${orig_interval}"
|
[ -n "${orig_interval}" ] && uci set network."${section}".orig_interval="${orig_interval}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ proto_batadv_init_config() {
|
|||||||
proto_config_add_string 'log_level'
|
proto_config_add_string 'log_level'
|
||||||
proto_config_add_int 'multicast_fanout'
|
proto_config_add_int 'multicast_fanout'
|
||||||
proto_config_add_boolean 'multicast_mode:bool'
|
proto_config_add_boolean 'multicast_mode:bool'
|
||||||
proto_config_add_boolean 'network_coding:bool'
|
|
||||||
proto_config_add_int 'orig_interval'
|
proto_config_add_int 'orig_interval'
|
||||||
proto_config_add_string 'routing_algo'
|
proto_config_add_string 'routing_algo'
|
||||||
}
|
}
|
||||||
@@ -47,7 +46,6 @@ proto_batadv_setup() {
|
|||||||
local log_level
|
local log_level
|
||||||
local multicast_fanout
|
local multicast_fanout
|
||||||
local multicast_mode
|
local multicast_mode
|
||||||
local network_coding
|
|
||||||
local orig_interval
|
local orig_interval
|
||||||
local routing_algo
|
local routing_algo
|
||||||
|
|
||||||
@@ -65,7 +63,6 @@ proto_batadv_setup() {
|
|||||||
json_get_vars log_level
|
json_get_vars log_level
|
||||||
json_get_vars multicast_fanout
|
json_get_vars multicast_fanout
|
||||||
json_get_vars multicast_mode
|
json_get_vars multicast_mode
|
||||||
json_get_vars network_coding
|
|
||||||
json_get_vars orig_interval
|
json_get_vars orig_interval
|
||||||
json_get_vars routing_algo
|
json_get_vars routing_algo
|
||||||
|
|
||||||
@@ -105,7 +102,6 @@ proto_batadv_setup() {
|
|||||||
[ -n "$isolation_mark" ] && batctl meshif "$iface" isolation_mark "$isolation_mark"
|
[ -n "$isolation_mark" ] && batctl meshif "$iface" isolation_mark "$isolation_mark"
|
||||||
[ -n "$multicast_fanout" ] && batctl meshif "$iface" multicast_fanout "$multicast_fanout"
|
[ -n "$multicast_fanout" ] && batctl meshif "$iface" multicast_fanout "$multicast_fanout"
|
||||||
[ -n "$multicast_mode" ] && batctl meshif "$iface" multicast_mode "$multicast_mode" 2>&-
|
[ -n "$multicast_mode" ] && batctl meshif "$iface" multicast_mode "$multicast_mode" 2>&-
|
||||||
[ -n "$network_coding" ] && batctl meshif "$iface" network_coding "$network_coding" 2>&-
|
|
||||||
[ -n "$log_level" ] && batctl meshif "$iface" loglevel "$log_level" 2>&-
|
[ -n "$log_level" ] && batctl meshif "$iface" loglevel "$log_level" 2>&-
|
||||||
[ -n "$orig_interval" ] && batctl meshif "$iface" orig_interval "$orig_interval"
|
[ -n "$orig_interval" ] && batctl meshif "$iface" orig_interval "$orig_interval"
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ macro to use when building under backports.
|
|||||||
|
|
||||||
--- a/net/batman-adv/hard-interface.c
|
--- a/net/batman-adv/hard-interface.c
|
||||||
+++ b/net/batman-adv/hard-interface.c
|
+++ b/net/batman-adv/hard-interface.c
|
||||||
@@ -308,8 +308,7 @@ static bool batadv_is_cfg80211_netdev(st
|
@@ -309,8 +309,7 @@ static bool batadv_is_cfg80211_netdev(st
|
||||||
{
|
{
|
||||||
if (!net_device)
|
if (!net_device)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ This reverts commit f33d7f724675544a36b24c77f8d4b95d41252ae2.
|
|||||||
#include <linux/atomic.h>
|
#include <linux/atomic.h>
|
||||||
#include <linux/build_bug.h>
|
#include <linux/build_bug.h>
|
||||||
#include <linux/byteorder/generic.h>
|
#include <linux/byteorder/generic.h>
|
||||||
@@ -20,6 +19,7 @@
|
@@ -19,6 +18,7 @@
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/ip.h>
|
#include <linux/ip.h>
|
||||||
#include <linux/ipv6.h>
|
#include <linux/ipv6.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user