// SPDX-License-Identifier: GPL-2.0/* Copyright (C) 2011-2018 B.A.T.M.A.N. contributors: * * Antonio Quartulli * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */#include"distributed-arp-table.h"#include"main.h"#include<linux/atomic.h>#include<linux/bitops.h>#include<linux/byteorder/generic.h>#include<linux/errno.h>#include<linux/etherdevice.h>#include<linux/gfp.h>#include<linux/if_arp.h>#include<linux/if_ether.h>#include<linux/if_vlan.h>#include<linux/in.h>#include<linux/jiffies.h>#include<linux/kernel.h>#include<linux/kref.h>#include<linux/list.h>#include<linux/netlink.h>#include<linux/rculist.h>#include<linux/rcupdate.h>#include<linux/seq_file.h>#include<linux/skbuff.h>#include<linux/slab.h>#include<linux/spinlock.h>#include<linux/stddef.h>#include<linux/string.h>#include<linux/workqueue.h>#include<net/arp.h>#include<net/genetlink.h>#include<net/netlink.h>#include<net/sock.h>#include<uapi/linux/batman_adv.h>#include"bridge_loop_avoidance.h"#include"hard-interface.h"#include"hash.h&quo