drm/panel-edp: Add BOE NV140FHM-NZ panel entry
[drm/drm-misc.git] / net / batman-adv / routing.h
blobe9849f032a240ccff1c85abcfbc72bc0f51a50f3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) B.A.T.M.A.N. contributors:
4 * Marek Lindner, Simon Wunderlich
5 */
7 #ifndef _NET_BATMAN_ADV_ROUTING_H_
8 #define _NET_BATMAN_ADV_ROUTING_H_
10 #include "main.h"
12 #include <linux/skbuff.h>
13 #include <linux/types.h>
15 bool batadv_check_management_packet(struct sk_buff *skb,
16 struct batadv_hard_iface *hard_iface,
17 int header_len);
18 void batadv_update_route(struct batadv_priv *bat_priv,
19 struct batadv_orig_node *orig_node,
20 struct batadv_hard_iface *recv_if,
21 struct batadv_neigh_node *neigh_node);
22 int batadv_recv_icmp_packet(struct sk_buff *skb,
23 struct batadv_hard_iface *recv_if);
24 int batadv_recv_unicast_packet(struct sk_buff *skb,
25 struct batadv_hard_iface *recv_if);
26 int batadv_recv_frag_packet(struct sk_buff *skb,
27 struct batadv_hard_iface *iface);
28 int batadv_recv_bcast_packet(struct sk_buff *skb,
29 struct batadv_hard_iface *recv_if);
30 #ifdef CONFIG_BATMAN_ADV_MCAST
31 int batadv_recv_mcast_packet(struct sk_buff *skb,
32 struct batadv_hard_iface *recv_if);
33 #else
34 static inline int batadv_recv_mcast_packet(struct sk_buff *skb,
35 struct batadv_hard_iface *recv_if)
37 kfree_skb(skb);
38 return NET_RX_DROP;
40 #endif
41 int batadv_recv_unicast_tvlv(struct sk_buff *skb,
42 struct batadv_hard_iface *recv_if);
43 int batadv_recv_unhandled_unicast_packet(struct sk_buff *skb,
44 struct batadv_hard_iface *recv_if);
45 struct batadv_neigh_node *
46 batadv_find_router(struct batadv_priv *bat_priv,
47 struct batadv_orig_node *orig_node,
48 struct batadv_hard_iface *recv_if);
49 bool batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff,
50 s32 seq_old_max_diff, unsigned long *last_reset,
51 bool *protection_started);
53 #endif /* _NET_BATMAN_ADV_ROUTING_H_ */