1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (C) 2007-2019 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_ 9 10 #include "main.h" 11 12 #include <linux/types.h> 13 14 struct sk_buff; 15 16 bool batadv_check_management_packet(struct sk_buff *skb, 17 struct batadv_hard_iface *hard_iface, 18 int header_len); 19 void batadv_update_route(struct batadv_priv *bat_priv, 20 struct batadv_orig_node *orig_node, 21 struct batadv_hard_iface *recv_if, 22 struct batadv_neigh_node *neigh_node); 23 int batadv_recv_icmp_packet(struct sk_buff *skb, 24 struct batadv_hard_iface *recv_if); 25 int batadv_recv_unicast_packet(struct sk_buff *skb, 26 struct batadv_hard_iface *recv_if); 27 int batadv_recv_frag_packet(struct sk_buff *skb, 28 struct batadv_hard_iface *iface); 29 int batadv_recv_bcast_packet(struct sk_buff *skb, 30 struct batadv_hard_iface *recv_if); 31 int batadv_recv_tt_query(struct sk_buff *skb, 32 struct batadv_hard_iface *recv_if); 33 int batadv_recv_roam_adv(struct sk_buff *skb, 34 struct batadv_hard_iface *recv_if); 35 int batadv_recv_unicast_tvlv(struct sk_buff *skb, 36 struct batadv_hard_iface *recv_if); 37 int batadv_recv_unhandled_unicast_packet(struct sk_buff *skb, 38 struct batadv_hard_iface *recv_if); 39 struct batadv_neigh_node * 40 batadv_find_router(struct batadv_priv *bat_priv, 41 struct batadv_orig_node *orig_node, 42 struct batadv_hard_iface *recv_if); 43 bool batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff, 44 s32 seq_old_max_diff, unsigned long *last_reset, 45 bool *protection_started); 46 47 #endif /* _NET_BATMAN_ADV_ROUTING_H_ */ 48