batman-adv: convert the tt_crc to network order
authorAntonio Quartulli <ordex@autistici.org>
Sat, 14 Apr 2012 11:15:27 +0000 (13:15 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 18 Apr 2012 07:43:36 +0000 (09:43 +0200)
commit6d2003fc26e280001273d0b9dcc02b90f4536708
tree58a9fbc1927df97ff68e6cfbd0fc31adce3b1ea4
parentecffe75f934b4e3c5301fe5db278068e0efb0d6b
batman-adv: convert the tt_crc to network order

Before sending out a TT_Request packet we must convert the tt_crc field value
to network order (since it is 16bits long).

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/translation-table.c