] pull request: batman-adv 2025-03-18
Subsystems (4)
Simon Wunderlich
maintainercover ] pull request: batman-adv 2025-03-18
Hi David, hi Jakub,
here is a bugfix for batman-adv which we would like to have integrated into net.
Please note that this pull request supersedes the pull request from 2025-03-13, as Paolo mentioned that there were some issues pulling due to too many patches added from my end.
Please pull or let me know of any problem!
Thank you,
Simon
The following changes since commit f4c9c2cc827d803159730b1da813a0c595969831:
batman-adv: Fix incorrect offset in batadv_tt_tvlv_ogm_handler_v1() (2025-01-28 22:06:56 +0100)
are available in the Git repository at:
git://git.open-mesh.org/linux-merge.git tags/batadv-net-pullrequest-20250318
for you to fetch changes up to 548b0c5de7619ef53bbde5590700693f2f6d2a56:
batman-adv: Ignore own maximum aggregation size during RX (2025-02-08 19:24:33 +0100)
----------------------------------------------------------------
Here is batman-adv bugfix:
- Ignore own maximum aggregation size during RX, Sven Eckelmann
----------------------------------------------------------------
Sven Eckelmann (1):
batman-adv: Ignore own maximum aggregation size during RX
net/batman-adv/bat_iv_ogm.c | 3 +-- net/batman-adv/bat_v_ogm.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
Simon Wunderlich
maintainerPATCH 1/1 batman-adv: Ignore own maximum aggregation size during RX
From: Sven Eckelmann <[email protected]>
An OGMv1 and OGMv2 packet receive processing were not only limited by the number of bytes in the received packet but also by the nodes maximum aggregation packet size limit. But this limit is relevant for TX and not for RX. It must not be enforced by batadv_(i)v_ogm_aggr_packet to avoid loss of information in case of a different limit for sender and receiver.
This has a minor side effect for B.A.T.M.A.N. IV because the batadv_iv_ogm_aggr_packet is also used for the preprocessing for the TX. But since the aggregation code itself will not allow more than BATADV_MAX_AGGREGATION_BYTES bytes, this check was never triggering (in this context) prior of removing it.
--- net/batman-adv/bat_iv_ogm.c | 3 +-- net/batman-adv/bat_v_ogm.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
net/batman-adv/bat_iv_ogm.c +1 -2
@@ -325,8 +325,7 @@ batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len,/* check if there is enough space for the optional TVLV */ next_buff_pos +=ntohs (ogm_packet->tvlv_len); -return (next_buff_pos <= packet_len) && - (next_buff_pos <=BATADV_MAX_AGGREGATION_BYTES ); +return next_buff_pos <= packet_len; }/* send a batman ogm to a given interface */
net/batman-adv/bat_v_ogm.c +1 -2
@@ -839,8 +839,7 @@ batadv_v_ogm_aggr_packet(int buff_pos, int packet_len,/* check if there is enough space for the optional TVLV */ next_buff_pos +=ntohs (ogm2_packet->tvlv_len); -return (next_buff_pos <= packet_len) && - (next_buff_pos <=BATADV_MAX_AGGREGATION_BYTES ); +return next_buff_pos <= packet_len; }/**
Signature · 1 line
2.39.5
Re: [PATCH net 1/1] batman-adv: Ignore own maximum aggregation size during RX
This patch was applied to netdev/net.git (main) by Simon Wunderlich <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Simon Wunderlich <[email protected]>:
Quoted 9 lines · On Tue, 18 Mar 2025 16:00:35 +0100 you wrote:
From: Sven Eckelmann <[email protected]>
An OGMv1 and OGMv2 packet receive processing were not only limited by the number of bytes in the received packet but also by the nodes maximum aggregation packet size limit. But this limit is relevant for TX and not for RX. It must not be enforced by batadv_(i)v_ogm_aggr_packet to avoid loss of information in case of a different limit for sender and receiver.
[...]
Here is the summary with links:
- [net,1/1] batman-adv: Ignore own maximum aggregation size during RX
https://git.kernel.org/netdev/net/c/548b0c5de761
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html