dns: fix parsing vlan encapsulated protocol
authorFelix Fietkau <nbd@nbd.name>
Mon, 7 Mar 2022 12:59:26 +0000 (13:59 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 7 Mar 2022 12:59:26 +0000 (13:59 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
dns.c

diff --git a/dns.c b/dns.c
index b943ef5030fbddd4e5142bcbb86f285425892bf3..13257f8b63aa81d8fcd49a2973163be23c65418f 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -276,7 +276,7 @@ qosify_dns_packet_cb(struct packet *pkt)
                if (!vlan)
                        return;
 
-               proto = vlan->proto;
+               proto = be16_to_cpu(vlan->proto);
        }
 
        switch (proto) {