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):
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
b.a.t.m.a.n@lists.open-mesh.org