Linux 5.7.7
[linux/fpc-iii.git] / net / batman-adv / icmp_socket.h
blob6abd0f4742effaa408fd39c78249cde381b9fe06
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2007-2020 B.A.T.M.A.N. contributors:
4 * Marek Lindner
5 */
7 #ifndef _NET_BATMAN_ADV_ICMP_SOCKET_H_
8 #define _NET_BATMAN_ADV_ICMP_SOCKET_H_
10 #include "main.h"
12 #include <linux/types.h>
13 #include <uapi/linux/batadv_packet.h>
15 #define BATADV_ICMP_SOCKET "socket"
17 void batadv_socket_setup(struct batadv_priv *bat_priv);
19 #ifdef CONFIG_BATMAN_ADV_DEBUGFS
21 void batadv_socket_init(void);
22 void batadv_socket_receive_packet(struct batadv_icmp_header *icmph,
23 size_t icmp_len);
25 #else
27 static inline void batadv_socket_init(void)
31 static inline void
32 batadv_socket_receive_packet(struct batadv_icmp_header *icmph, size_t icmp_len)
36 #endif
38 #endif /* _NET_BATMAN_ADV_ICMP_SOCKET_H_ */