/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2007-2019 B.A.T.M.A.N. contributors: * * Andreas Langer , Marek Lindner * * License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef _BATCTL_ICMP_HELPER_H #define _BATCTL_ICMP_HELPER_H #include "main.h" #include #include #include #include #include #include #include #include "batadv_packet.h" #include "list.h" struct timeval; struct icmp_interface { char name[IFNAMSIZ]; uint8_t mac[ETH_ALEN]; int sock; int mark; struct list_head list; }; int icmp_interfaces_init(void); int icmp_interface_write(const char *mesh_iface, struct batadv_icmp_header *icmp_packet, size_t len); void icmp_interfaces_clean(void); ssize_t icmp_interface_read(struct batadv_icmp_header *icmp_packet, size_t len, struct timeval *tv); #endif