.. | .. |
---|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
---|
2 | | -/* Copyright (C) 2007-2018 B.A.T.M.A.N. contributors: |
---|
| 2 | +/* Copyright (C) 2007-2020 B.A.T.M.A.N. contributors: |
---|
3 | 3 | * |
---|
4 | 4 | * Marek Lindner, Simon Wunderlich |
---|
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/>. |
---|
17 | 5 | */ |
---|
18 | 6 | |
---|
19 | 7 | #ifndef _NET_BATMAN_ADV_MAIN_H_ |
---|
.. | .. |
---|
25 | 13 | #define BATADV_DRIVER_DEVICE "batman-adv" |
---|
26 | 14 | |
---|
27 | 15 | #ifndef BATADV_SOURCE_VERSION |
---|
28 | | -#define BATADV_SOURCE_VERSION "2018.3" |
---|
| 16 | +#define BATADV_SOURCE_VERSION "2020.4" |
---|
29 | 17 | #endif |
---|
30 | 18 | |
---|
31 | 19 | /* B.A.T.M.A.N. parameters */ |
---|
.. | .. |
---|
217 | 205 | |
---|
218 | 206 | /* Kernel headers */ |
---|
219 | 207 | |
---|
| 208 | +#include <linux/atomic.h> |
---|
220 | 209 | #include <linux/compiler.h> |
---|
221 | 210 | #include <linux/etherdevice.h> |
---|
222 | 211 | #include <linux/if_vlan.h> |
---|
223 | 212 | #include <linux/jiffies.h> |
---|
| 213 | +#include <linux/netdevice.h> |
---|
224 | 214 | #include <linux/percpu.h> |
---|
| 215 | +#include <linux/seq_file.h> |
---|
| 216 | +#include <linux/skbuff.h> |
---|
225 | 217 | #include <linux/types.h> |
---|
226 | 218 | #include <uapi/linux/batadv_packet.h> |
---|
227 | 219 | |
---|
228 | 220 | #include "types.h" |
---|
229 | | - |
---|
230 | | -struct net_device; |
---|
231 | | -struct packet_type; |
---|
232 | | -struct seq_file; |
---|
233 | | -struct sk_buff; |
---|
| 221 | +#include "main.h" |
---|
234 | 222 | |
---|
235 | 223 | /** |
---|
236 | 224 | * batadv_print_vid() - return printable version of vid information |
---|
.. | .. |
---|
247 | 235 | } |
---|
248 | 236 | |
---|
249 | 237 | extern struct list_head batadv_hardif_list; |
---|
| 238 | +extern unsigned int batadv_hardif_generation; |
---|
250 | 239 | |
---|
251 | 240 | extern unsigned char batadv_broadcast_addr[]; |
---|
252 | 241 | extern struct workqueue_struct *batadv_event_workqueue; |
---|
.. | .. |
---|
319 | 308 | * @y: value to compare @x against |
---|
320 | 309 | * |
---|
321 | 310 | * It handles overflows/underflows and can correctly check for a predecessor |
---|
322 | | - * unless the variable sequence number has grown by more then |
---|
| 311 | + * unless the variable sequence number has grown by more than |
---|
323 | 312 | * 2**(bitwidth(x)-1)-1. |
---|
324 | 313 | * |
---|
325 | 314 | * This means that for a u8 with the maximum value 255, it would think: |
---|
.. | .. |
---|
341 | 330 | |
---|
342 | 331 | /** |
---|
343 | 332 | * batadv_seq_after() - Checks if a sequence number x is a successor of y |
---|
344 | | - * @x: potential sucessor of @y |
---|
| 333 | + * @x: potential successor of @y |
---|
345 | 334 | * @y: value to compare @x against |
---|
346 | 335 | * |
---|
347 | 336 | * It handles overflows/underflows and can correctly check for a successor |
---|
348 | | - * unless the variable sequence number has grown by more then |
---|
| 337 | + * unless the variable sequence number has grown by more than |
---|
349 | 338 | * 2**(bitwidth(x)-1)-1. |
---|
350 | 339 | * |
---|
351 | 340 | * This means that for a u8 with the maximum value 255, it would think: |
---|
.. | .. |
---|
393 | 382 | |
---|
394 | 383 | unsigned short batadv_get_vid(struct sk_buff *skb, size_t header_len); |
---|
395 | 384 | bool batadv_vlan_ap_isola_get(struct batadv_priv *bat_priv, unsigned short vid); |
---|
| 385 | +int batadv_throw_uevent(struct batadv_priv *bat_priv, enum batadv_uev_type type, |
---|
| 386 | + enum batadv_uev_action action, const char *data); |
---|
396 | 387 | |
---|
397 | 388 | #endif /* _NET_BATMAN_ADV_MAIN_H_ */ |
---|