hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/net/batman-adv/distributed-arp-table.h
....@@ -1,19 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
2
-/* Copyright (C) 2011-2018 B.A.T.M.A.N. contributors:
2
+/* Copyright (C) 2011-2020 B.A.T.M.A.N. contributors:
33 *
44 * Antonio Quartulli
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of version 2 of the GNU General Public
8
- * License as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but
11
- * WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
175 */
186
197 #ifndef _NET_BATMAN_ADV_DISTRIBUTED_ARP_TABLE_H_
....@@ -23,14 +11,13 @@
2311
2412 #include <linux/compiler.h>
2513 #include <linux/netdevice.h>
14
+#include <linux/netlink.h>
15
+#include <linux/seq_file.h>
16
+#include <linux/skbuff.h>
2617 #include <linux/types.h>
2718 #include <uapi/linux/batadv_packet.h>
2819
2920 #include "originator.h"
30
-
31
-struct netlink_callback;
32
-struct seq_file;
33
-struct sk_buff;
3421
3522 #ifdef CONFIG_BATMAN_ADV_DAT
3623
....@@ -46,6 +33,12 @@
4633 struct sk_buff *skb);
4734 bool batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv,
4835 struct sk_buff *skb, int hdr_size);
36
+void batadv_dat_snoop_outgoing_dhcp_ack(struct batadv_priv *bat_priv,
37
+ struct sk_buff *skb,
38
+ __be16 proto,
39
+ unsigned short vid);
40
+void batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv *bat_priv,
41
+ struct sk_buff *skb, int hdr_size);
4942 bool batadv_dat_drop_broadcast_packet(struct batadv_priv *bat_priv,
5043 struct batadv_forw_packet *forw_packet);
5144
....@@ -140,6 +133,19 @@
140133 return false;
141134 }
142135
136
+static inline void
137
+batadv_dat_snoop_outgoing_dhcp_ack(struct batadv_priv *bat_priv,
138
+ struct sk_buff *skb, __be16 proto,
139
+ unsigned short vid)
140
+{
141
+}
142
+
143
+static inline void
144
+batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv *bat_priv,
145
+ struct sk_buff *skb, int hdr_size)
146
+{
147
+}
148
+
143149 static inline bool
144150 batadv_dat_drop_broadcast_packet(struct batadv_priv *bat_priv,
145151 struct batadv_forw_packet *forw_packet)
....@@ -154,11 +160,6 @@
154160
155161 static inline void batadv_dat_init_own_addr(struct batadv_priv *bat_priv,
156162 struct batadv_hard_iface *iface)
157
-{
158
-}
159
-
160
-static inline void batadv_arp_change_timeout(struct net_device *soft_iface,
161
- const char *name)
162163 {
163164 }
164165