Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d2003fc authored by Antonio Quartulli's avatar Antonio Quartulli
Browse files

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: default avatarAl Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
parent ecffe75f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1339,7 +1339,7 @@ static int send_tt_request(struct bat_priv *bat_priv,
	memcpy(tt_request->dst, dst_orig_node->orig, ETH_ALEN);
	tt_request->header.ttl = TTL;
	tt_request->ttvn = ttvn;
	tt_request->tt_data = tt_crc;
	tt_request->tt_data = htons(tt_crc);
	tt_request->flags = TT_REQUEST;

	if (full_table)