18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright (C) 2007-2020  B.A.T.M.A.N. contributors:
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Marek Lindner
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef _NET_BATMAN_ADV_ICMP_SOCKET_H_
88c2ecf20Sopenharmony_ci#define _NET_BATMAN_ADV_ICMP_SOCKET_H_
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include "main.h"
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include <linux/types.h>
138c2ecf20Sopenharmony_ci#include <uapi/linux/batadv_packet.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define BATADV_ICMP_SOCKET "socket"
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_civoid batadv_socket_setup(struct batadv_priv *bat_priv);
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#ifdef CONFIG_BATMAN_ADV_DEBUGFS
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_civoid batadv_socket_init(void);
228c2ecf20Sopenharmony_civoid batadv_socket_receive_packet(struct batadv_icmp_header *icmph,
238c2ecf20Sopenharmony_ci				  size_t icmp_len);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#else
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_cistatic inline void batadv_socket_init(void)
288c2ecf20Sopenharmony_ci{
298c2ecf20Sopenharmony_ci}
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_cistatic inline void
328c2ecf20Sopenharmony_cibatadv_socket_receive_packet(struct batadv_icmp_header *icmph, size_t icmp_len)
338c2ecf20Sopenharmony_ci{
348c2ecf20Sopenharmony_ci}
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci#endif
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci#endif /* _NET_BATMAN_ADV_ICMP_SOCKET_H_ */
39