mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 13/16] Finish annotations of struct vlan_ethhdr
@ 2006-10-10 22:38 Al Viro
  2006-10-10 22:48 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2006-10-10 22:38 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

From: Alexey Dobriyan <adobriyan@gmail.com>
Date: Wed, 28 Dec 2005 22:27:10 +0300

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 include/linux/if_vlan.h |    2 +-
 net/8021q/vlan_dev.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h
index ab27408..35cb385 100644
--- a/include/linux/if_vlan.h
+++ b/include/linux/if_vlan.h
@@ -44,7 +44,7 @@ struct vlan_ethhdr {
    unsigned char	h_source[ETH_ALEN];	   /* source ether addr	*/
    __be16               h_vlan_proto;              /* Should always be 0x8100 */
    __be16               h_vlan_TCI;                /* Encapsulates priority and VLAN ID */
-   unsigned short	h_vlan_encapsulated_proto; /* packet type ID field (or len) */
+   __be16		h_vlan_encapsulated_proto; /* packet type ID field (or len) */
 };
 
 #include <linux/skbuff.h>
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index da9cfe9..60a508e 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -62,7 +62,7 @@ #endif	
 	default:
 		printk(VLAN_DBG
 		       "%s: unable to resolve type %X addresses.\n", 
-		       dev->name, (int)veth->h_vlan_encapsulated_proto);
+		       dev->name, ntohs(veth->h_vlan_encapsulated_proto));
 	 
 		memcpy(veth->h_source, dev->dev_addr, ETH_ALEN);
 		break;
-- 
1.4.2.GIT



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 13/16] Finish annotations of struct vlan_ethhdr
  2006-10-10 22:38 [PATCH 13/16] Finish annotations of struct vlan_ethhdr Al Viro
@ 2006-10-10 22:48 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2006-10-10 22:48 UTC (permalink / raw)
  To: viro; +Cc: torvalds, linux-kernel

From: Al Viro <viro@ftp.linux.org.uk>
Date: Tue, 10 Oct 2006 23:38:55 +0100

> From: Alexey Dobriyan <adobriyan@gmail.com>
> Date: Wed, 28 Dec 2005 22:27:10 +0300
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Signed-off-by: David S. Miller <davem@davemloft.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-10 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 22:38 [PATCH 13/16] Finish annotations of struct vlan_ethhdr Al Viro
2006-10-10 22:48 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®