public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH 0/2] Fixes reported by Al Viro
@ 2012-04-14 11:15 Antonio Quartulli
  2012-04-14 11:15 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: convert bat_priv->tt_crc from atomic_t to uint16_t Antonio Quartulli
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Antonio Quartulli @ 2012-04-14 11:15 UTC (permalink / raw)
  To: b.a.t.m.a.n

The following two patches fix the two issues found by Al Viro and reported in
his email.

Patch 1) simply convert the tt_crc field in the bat_priv structure from atomic_t
to uint16_t. Actually there is no reason to declare it as atomic_t.

Patch 2) fixes a little bug we have when sending a tt_request message: now we
don't convert the tt_crc that we are sending within the request to network
order. OTOH we convert this field from NO to HO on the receiver side.

Therefore, nodes on the path of the request, which have HO different from NO,
will fail to reply to the request and will forward it towards the final
destination.


Cheers,
	Antonio




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-04-17  8:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-14 11:15 [B.A.T.M.A.N.] [PATCH 0/2] Fixes reported by Al Viro Antonio Quartulli
2012-04-14 11:15 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: convert bat_priv->tt_crc from atomic_t to uint16_t Antonio Quartulli
2012-04-17  8:32   ` Marek Lindner
2012-04-14 11:15 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: convert the tt_crc to network order Antonio Quartulli
2012-04-17  8:48   ` Marek Lindner
2012-04-14 11:29 ` [B.A.T.M.A.N.] [PATCH 0/2] Fixes reported by Al Viro Antonio Quartulli
2012-04-14 11:34   ` Marek Lindner
2012-04-14 11:41     ` Antonio Quartulli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox