]> err.no Git - linux-2.6/blobdiff - net/8021q/vlan_dev.c
[NETNS]: Process IP layer in the context of the correct namespace.
[linux-2.6] / net / 8021q / vlan_dev.c
index 556b2893b56b7e3295f6dd71aa00e5581a7e5e8c..1e5c9904571d27a78a90761aeb3882f1bf3bfa57 100644 (file)
@@ -382,7 +382,7 @@ static int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
                vlan_dev_info(dev)->cnt_encap_on_xmit++;
 
                pr_debug("%s: proto to encap: 0x%hx\n",
-                        __func__, htons(veth->h_vlan_proto));
+                        __func__, ntohs(veth->h_vlan_proto));
                /* Construct the second two bytes. This field looks something
                 * like:
                 * usr_priority: 3 bits  (high bits)