* [B.A.T.M.A.N.] [PATCH next] batman-adv: use proper network order conversion
@ 2013-08-07 23:18 Antonio Quartulli
2013-08-08 11:37 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2013-08-07 23:18 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
Introduced by eb7643628a608cb338d48d298ce7ca15fadfb239
("batman-adv: set skb priority according to content")
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index ed97382..58c98b6 100644
--- a/main.c
+++ b/main.c
@@ -283,7 +283,7 @@ void batadv_skb_set_priority(struct sk_buff *skb, int offset)
sizeof(*vhdr), &vhdr_tmp);
if (!vhdr)
return;
- prio = htons(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK;
+ prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK;
prio = prio >> VLAN_PRIO_SHIFT;
break;
case htons(ETH_P_IP):
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH next] batman-adv: use proper network order conversion
2013-08-07 23:18 [B.A.T.M.A.N.] [PATCH next] batman-adv: use proper network order conversion Antonio Quartulli
@ 2013-08-08 11:37 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2013-08-08 11:37 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Thursday, August 08, 2013 07:18:19 Antonio Quartulli wrote:
> Introduced by eb7643628a608cb338d48d298ce7ca15fadfb239
> ("batman-adv: set skb priority according to content")
>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied in revision 74fa2e6.
Thanks,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-08 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-07 23:18 [B.A.T.M.A.N.] [PATCH next] batman-adv: use proper network order conversion Antonio Quartulli
2013-08-08 11:37 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox