projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'acpica' into release
[firefly-linux-kernel-4.4.55.git]
/
include
/
linux
/
icmp.h
diff --git
a/include/linux/icmp.h
b/include/linux/icmp.h
index 24da4fbc1a2f731c02c62f0732d6b2fb5f4f3cd8..474f2a51cf0af66474be229b626403975a36683c 100644
(file)
--- a/
include/linux/icmp.h
+++ b/
include/linux/icmp.h
@@
-82,6
+82,15
@@
struct icmphdr {
} 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
*/