[8021Q]: vlan_dev misannotations
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 18 Mar 2008 05:49:48 +0000 (22:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Mar 2008 05:49:48 +0000 (22:49 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c

index 77f04e49a1a077013d2be6a1acd8f32c65559dc5..8fbcefe10c9fde2ff66a2a78fcced415bc5238cf 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",
-                        __FUNCTION__, htons(veth->h_vlan_proto));
+                        __FUNCTION__, ntohs(veth->h_vlan_proto));
                /* Construct the second two bytes. This field looks something
                 * like:
                 * usr_priority: 3 bits  (high bits)