git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
KVM: MMU: introduce gfn_to_page_many_atomic() function
[pandora-kernel.git]
/
include
/
linux
/
icmp.h
diff --git
a/include/linux/icmp.h
b/include/linux/icmp.h
index
878cfe4
..
474f2a5
100644
(file)
--- a/
include/linux/icmp.h
+++ b/
include/linux/icmp.h
@@
-68,7
+68,7
@@
struct icmphdr {
__u8 type;
__u8 code;
struct icmphdr {
__u8 type;
__u8 code;
- __
be16
checksum;
+ __
sum16
checksum;
union {
struct {
__be16 id;
union {
struct {
__be16 id;
@@
-82,6
+82,15
@@
struct icmphdr {
} un;
};
} un;
};
+#ifdef __KERNEL__
+#include <linux/skbuff.h>
+
+static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb)
+{
+ return (struct icmphdr *)skb_transport_header(skb);
+}
+#endif
+
/*
* constants for (set|get)sockopt
*/
/*
* constants for (set|get)sockopt
*/