* [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t
@ 2013-05-24 15:25 Antonio Quartulli
2013-05-24 15:25 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: fix typo in kernel doc Antonio Quartulli
2013-05-28 7:10 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t Marek Lindner
0 siblings, 2 replies; 6+ messages in thread
From: Antonio Quartulli @ 2013-05-24 15:25 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
Since the introduction of the tvlv_tt_data struct variables
storing the number of TT changes are always declared as
uint16_t, however some of them were not changed.
Switch them al to uint16_t.
Introduced by 8405301b979466610a726b7d595b6bfee5306cf7
("batman-adv: tvlv - convert tt data sent within OGMs")
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
translation-table.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/translation-table.c b/translation-table.c
index 44e7789..f6b96cb 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -1486,7 +1486,7 @@ static void batadv_tt_req_list_free(struct batadv_priv *bat_priv)
static void batadv_tt_save_orig_buffer(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node,
const unsigned char *tt_buff,
- uint8_t tt_num_changes)
+ uint16_t tt_num_changes)
{
uint16_t tt_buff_len = batadv_tt_len(tt_num_changes);
@@ -2407,8 +2407,8 @@ out:
static void batadv_tt_update_orig(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node,
const unsigned char *tt_buff,
- uint8_t tt_num_changes,
- uint8_t ttvn, uint32_t tt_crc)
+ uint16_t tt_num_changes, uint8_t ttvn,
+ uint32_t tt_crc)
{
uint8_t orig_ttvn = (uint8_t)atomic_read(&orig_node->last_ttvn);
bool full_table = true;
--
1.8.1.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: fix typo in kernel doc
2013-05-24 15:25 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t Antonio Quartulli
@ 2013-05-24 15:25 ` Antonio Quartulli
2013-05-28 7:13 ` Marek Lindner
2013-05-28 7:10 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t Marek Lindner
1 sibling, 1 reply; 6+ messages in thread
From: Antonio Quartulli @ 2013-05-24 15:25 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
Now TT uses CRC32 instead of CRC16
Introduced by c5e7a06a29612056006e4dc01910c0b44e858583
("batman-adv: use CRC32C instead of CRC16 in TT code")
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
translation-table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/translation-table.c b/translation-table.c
index f6b96cb..08da23a 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -2402,7 +2402,7 @@ out:
* @tt_buff: buffer holding the tt information
* @tt_num_changes: number of tt changes inside the tt buffer
* @ttvn: translation table version number of this changeset
- * @tt_crc: crc16 checksum of orig node's translation table
+ * @tt_crc: crc32 checksum of orig node's translation table
*/
static void batadv_tt_update_orig(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node,
--
1.8.1.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t
@ 2013-05-27 13:10 Antonio Quartulli
2013-05-28 6:31 ` Antonio Quartulli
0 siblings, 1 reply; 6+ messages in thread
From: Antonio Quartulli @ 2013-05-27 13:10 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
Since the introduction of the tvlv_tt_data struct variables
storing the number of TT changes are always declared as
uint16_t, however some of them were not changed.
Switch them al to uint16_t.
Introduced by 8405301b979466610a726b7d595b6bfee5306cf7
("batman-adv: tvlv - convert tt data sent within OGMs")
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
patches based on top of:
("batman-adv: correctly align the tt_tvlv_data struct")
translation-table.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/translation-table.c b/translation-table.c
index 44e7789..f6b96cb 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -1486,7 +1486,7 @@ static void batadv_tt_req_list_free(struct batadv_priv *bat_priv)
static void batadv_tt_save_orig_buffer(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node,
const unsigned char *tt_buff,
- uint8_t tt_num_changes)
+ uint16_t tt_num_changes)
{
uint16_t tt_buff_len = batadv_tt_len(tt_num_changes);
@@ -2407,8 +2407,8 @@ out:
static void batadv_tt_update_orig(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node,
const unsigned char *tt_buff,
- uint8_t tt_num_changes,
- uint8_t ttvn, uint32_t tt_crc)
+ uint16_t tt_num_changes, uint8_t ttvn,
+ uint32_t tt_crc)
{
uint8_t orig_ttvn = (uint8_t)atomic_read(&orig_node->last_ttvn);
bool full_table = true;
--
1.8.1.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t
2013-05-27 13:10 Antonio Quartulli
@ 2013-05-28 6:31 ` Antonio Quartulli
0 siblings, 0 replies; 6+ messages in thread
From: Antonio Quartulli @ 2013-05-28 6:31 UTC (permalink / raw)
To: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
Sorry, ignore this patch. It has been resent by accident.
On Mon, May 27, 2013 at 03:10:00PM +0200, Antonio Quartulli wrote:
> Since the introduction of the tvlv_tt_data struct variables
> storing the number of TT changes are always declared as
> uint16_t, however some of them were not changed.
>
> Switch them al to uint16_t.
>
> Introduced by 8405301b979466610a726b7d595b6bfee5306cf7
> ("batman-adv: tvlv - convert tt data sent within OGMs")
>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t
2013-05-24 15:25 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t Antonio Quartulli
2013-05-24 15:25 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: fix typo in kernel doc Antonio Quartulli
@ 2013-05-28 7:10 ` Marek Lindner
1 sibling, 0 replies; 6+ messages in thread
From: Marek Lindner @ 2013-05-28 7:10 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
On Friday, May 24, 2013 23:25:28 Antonio Quartulli wrote:
> Since the introduction of the tvlv_tt_data struct variables
> storing the number of TT changes are always declared as
> uint16_t, however some of them were not changed.
>
> Switch them al to uint16_t.
>
> Introduced by 8405301b979466610a726b7d595b6bfee5306cf7
> ("batman-adv: tvlv - convert tt data sent within OGMs")
>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> translation-table.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied in revision 49d9c47.
Thanks,
Marek
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: fix typo in kernel doc
2013-05-24 15:25 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: fix typo in kernel doc Antonio Quartulli
@ 2013-05-28 7:13 ` Marek Lindner
0 siblings, 0 replies; 6+ messages in thread
From: Marek Lindner @ 2013-05-28 7:13 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
On Friday, May 24, 2013 23:25:29 Antonio Quartulli wrote:
> Now TT uses CRC32 instead of CRC16
>
> Introduced by c5e7a06a29612056006e4dc01910c0b44e858583
> ("batman-adv: use CRC32C instead of CRC16 in TT code")
>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> translation-table.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied in revision 3b0654e.
Thanks,
Marek
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-05-28 7:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-24 15:25 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t Antonio Quartulli
2013-05-24 15:25 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: fix typo in kernel doc Antonio Quartulli
2013-05-28 7:13 ` Marek Lindner
2013-05-28 7:10 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: fix num_changes type to uint16_t Marek Lindner
-- strict thread matches above, loose matches on Subject: below --
2013-05-27 13:10 Antonio Quartulli
2013-05-28 6:31 ` Antonio Quartulli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox