routing.h (a940daa52167e9db8ecce82213813b735a9d9f23) routing.h (07afe1ba288c04280622fa002ed385f1ac0b6fe6)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (C) B.A.T.M.A.N. contributors:
3 *
4 * Marek Lindner, Simon Wunderlich
5 */
6
7#ifndef _NET_BATMAN_ADV_ROUTING_H_
8#define _NET_BATMAN_ADV_ROUTING_H_

--- 13 unchanged lines hidden (view full) ---

22int batadv_recv_icmp_packet(struct sk_buff *skb,
23 struct batadv_hard_iface *recv_if);
24int batadv_recv_unicast_packet(struct sk_buff *skb,
25 struct batadv_hard_iface *recv_if);
26int batadv_recv_frag_packet(struct sk_buff *skb,
27 struct batadv_hard_iface *iface);
28int batadv_recv_bcast_packet(struct sk_buff *skb,
29 struct batadv_hard_iface *recv_if);
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (C) B.A.T.M.A.N. contributors:
3 *
4 * Marek Lindner, Simon Wunderlich
5 */
6
7#ifndef _NET_BATMAN_ADV_ROUTING_H_
8#define _NET_BATMAN_ADV_ROUTING_H_

--- 13 unchanged lines hidden (view full) ---

22int batadv_recv_icmp_packet(struct sk_buff *skb,
23 struct batadv_hard_iface *recv_if);
24int batadv_recv_unicast_packet(struct sk_buff *skb,
25 struct batadv_hard_iface *recv_if);
26int batadv_recv_frag_packet(struct sk_buff *skb,
27 struct batadv_hard_iface *iface);
28int batadv_recv_bcast_packet(struct sk_buff *skb,
29 struct batadv_hard_iface *recv_if);
30#ifdef CONFIG_BATMAN_ADV_MCAST
31int batadv_recv_mcast_packet(struct sk_buff *skb,
32 struct batadv_hard_iface *recv_if);
33#else
34static inline int batadv_recv_mcast_packet(struct sk_buff *skb,
35 struct batadv_hard_iface *recv_if)
36{
37 kfree_skb(skb);
38 return NET_RX_DROP;
39}
40#endif
30int batadv_recv_unicast_tvlv(struct sk_buff *skb,
31 struct batadv_hard_iface *recv_if);
32int batadv_recv_unhandled_unicast_packet(struct sk_buff *skb,
33 struct batadv_hard_iface *recv_if);
34struct batadv_neigh_node *
35batadv_find_router(struct batadv_priv *bat_priv,
36 struct batadv_orig_node *orig_node,
37 struct batadv_hard_iface *recv_if);
38bool batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff,
39 s32 seq_old_max_diff, unsigned long *last_reset,
40 bool *protection_started);
41
42#endif /* _NET_BATMAN_ADV_ROUTING_H_ */
41int batadv_recv_unicast_tvlv(struct sk_buff *skb,
42 struct batadv_hard_iface *recv_if);
43int batadv_recv_unhandled_unicast_packet(struct sk_buff *skb,
44 struct batadv_hard_iface *recv_if);
45struct batadv_neigh_node *
46batadv_find_router(struct batadv_priv *bat_priv,
47 struct batadv_orig_node *orig_node,
48 struct batadv_hard_iface *recv_if);
49bool 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);
52
53#endif /* _NET_BATMAN_ADV_ROUTING_H_ */