• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Based on include/linux/icmp.h
4  * Author:	Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
5  *
6  * NewIP INET
7  * An implementation of the TCP/IP protocol suite for the LINUX
8  * operating system. NewIP INET is implemented using the  BSD Socket
9  * interface as the means of communication with the user level.
10  *
11  * Definitions for the NewIP ICMP protocol.
12  */
13 #ifndef _LINUX_NIP_ICMP_H
14 #define _LINUX_NIP_ICMP_H
15 
16 #include <uapi/linux/nip_icmp.h>
17 #include <linux/skbuff.h>
18 #include <linux/netdevice.h>
19 
nip_icmp_header(const struct sk_buff * skb)20 static inline struct nip_icmp_hdr *nip_icmp_header(const struct sk_buff *skb)
21 {
22 	return (struct nip_icmp_hdr *)skb_transport_header(skb);
23 }
24 
25 int nip_icmp_init(void);
26 
27 #endif
28