projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df6edb9
)
batman-adv: reuse tt_len() to calculate tt buffer length
author
Marek Lindner
<lindner_marek@yahoo.de>
Fri, 29 Jul 2011 16:31:38 +0000
(18:31 +0200)
committer
Marek Lindner
<lindner_marek@yahoo.de>
Mon, 22 Aug 2011 13:16:22 +0000
(15:16 +0200)
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/aggregation.h
patch
|
blob
|
history
diff --git
a/net/batman-adv/aggregation.h
b/net/batman-adv/aggregation.h
index
216337b
..
df4a5a9
100644
(file)
--- a/
net/batman-adv/aggregation.h
+++ b/
net/batman-adv/aggregation.h
@@
-28,8
+28,7
@@
static inline int aggregated_packet(int buff_pos, int packet_len,
int tt_num_changes)
{
- int next_buff_pos = buff_pos + BAT_PACKET_LEN + (tt_num_changes *
- sizeof(struct tt_change));
+ int next_buff_pos = buff_pos + BAT_PACKET_LEN + tt_len(tt_num_changes);
return (next_buff_pos <= packet_len) &&
(next_buff_pos <= MAX_AGGREGATION_BYTES);