| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] netdevice.h: be'ify packet_type |
| From: | Alexey Dobriyan <adobriyan@xxxxxxxxx> |
| Date: | Sat, 21 May 2005 19:40:59 +0400 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=OmylFywTWJKGUQAMxvsIBK6JZ66Y/i9G1OHEMBbGJaNUpp7SSV2yCQW7cyU3QcvRTSsVzU8Jr14rGp9UxIPi3vtCo/9zRXmkl7k2JxR8GBDwQr+AuTlZPv3cYE1DAzLNhCheJZUnGAzbUQVODJ83TT3F+UM17HWtfn7VzJpADGU= |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | KMail/1.7.2 |
Everybody does
struct packet_type foo_packet_type = {
.type = __constant_htons(ETH_P_FOO);
};
5 introduced warnings will be properly fixed later.
Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
--- linux-20050521140543-000/include/linux/netdevice.h 2005-05-21
14:12:24.000000000 +0400
+++ linux-20050521140543-001/include/linux/netdevice.h 2005-05-21
17:14:26.000000000 +0400
@@ -503,7 +503,7 @@ static inline void *netdev_priv(struct n
#define SET_NETDEV_DEV(net, pdev) ((net)->class_dev.dev = (pdev))
struct packet_type {
- unsigned short type; /* This is really htons(ether_type).
*/
+ __be16 type; /* This is really htons(ether_type).
*/
struct net_device *dev; /* NULL is wildcarded here
*/
int (*func) (struct sk_buff *, struct net_device *,
struct packet_type *);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Netem] [PATCH] (3/3) netem: allow random reordering, Julio Kriger |
|---|---|
| Next by Date: | Re: [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets, Herbert Xu |
| Previous by Thread: | who is eating hw header in packets?, cranium2003 |
| Next by Thread: | Re: [PATCH] netdevice.h: be'ify packet_type, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |