Skip to content

Commit 2fdf088

Browse files
author
Paolo Abeni
committed
Merge tag 'batadv-net-pullrequest-20250318' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== Here is batman-adv bugfix: - Ignore own maximum aggregation size during RX, Sven Eckelmann * tag 'batadv-net-pullrequest-20250318' of git://git.open-mesh.org/linux-merge: batman-adv: Ignore own maximum aggregation size during RX ==================== Link: https://patch.msgid.link/20250318150035.35356-1-sw@simonwunderlich.de Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2 parents 90a7138 + 548b0c5 commit 2fdf088

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

net/batman-adv/bat_iv_ogm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,7 @@ batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len,
325325
/* check if there is enough space for the optional TVLV */
326326
next_buff_pos += ntohs(ogm_packet->tvlv_len);
327327

328-
return (next_buff_pos <= packet_len) &&
329-
(next_buff_pos <= BATADV_MAX_AGGREGATION_BYTES);
328+
return next_buff_pos <= packet_len;
330329
}
331330

332331
/* send a batman ogm to a given interface */

net/batman-adv/bat_v_ogm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,7 @@ batadv_v_ogm_aggr_packet(int buff_pos, int packet_len,
839839
/* check if there is enough space for the optional TVLV */
840840
next_buff_pos += ntohs(ogm2_packet->tvlv_len);
841841

842-
return (next_buff_pos <= packet_len) &&
843-
(next_buff_pos <= BATADV_MAX_AGGREGATION_BYTES);
842+
return next_buff_pos <= packet_len;
844843
}
845844

846845
/**

0 commit comments

Comments
 (0)