git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
drivers
/
ieee1394
/
eth1394.h
diff --git
a/drivers/ieee1394/eth1394.h
b/drivers/ieee1394/eth1394.h
index
015f817
..
ed8f1c4
100644
(file)
--- a/
drivers/ieee1394/eth1394.h
+++ b/
drivers/ieee1394/eth1394.h
@@
-81,7
+81,14
@@
struct eth1394hdr {
unsigned short h_proto; /* packet type ID field */
} __attribute__((packed));
unsigned short h_proto; /* packet type ID field */
} __attribute__((packed));
+#ifdef __KERNEL__
+#include <linux/skbuff.h>
+static inline struct eth1394hdr *eth1394_hdr(const struct sk_buff *skb)
+{
+ return (struct eth1394hdr *)skb->mac.raw;
+}
+#endif
typedef enum {ETH1394_GASP, ETH1394_WRREQ} eth1394_tx_type;
typedef enum {ETH1394_GASP, ETH1394_WRREQ} eth1394_tx_type;