Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright (C) B.A.T.M.A.N. contributors:
0003  *
0004  * Marek Lindner, Simon Wunderlich
0005  */
0006 
0007 #ifndef _NET_BATMAN_ADV_ROUTING_H_
0008 #define _NET_BATMAN_ADV_ROUTING_H_
0009 
0010 #include "main.h"
0011 
0012 #include <linux/skbuff.h>
0013 #include <linux/types.h>
0014 
0015 bool batadv_check_management_packet(struct sk_buff *skb,
0016                     struct batadv_hard_iface *hard_iface,
0017                     int header_len);
0018 void batadv_update_route(struct batadv_priv *bat_priv,
0019              struct batadv_orig_node *orig_node,
0020              struct batadv_hard_iface *recv_if,
0021              struct batadv_neigh_node *neigh_node);
0022 int batadv_recv_icmp_packet(struct sk_buff *skb,
0023                 struct batadv_hard_iface *recv_if);
0024 int batadv_recv_unicast_packet(struct sk_buff *skb,
0025                    struct batadv_hard_iface *recv_if);
0026 int batadv_recv_frag_packet(struct sk_buff *skb,
0027                 struct batadv_hard_iface *iface);
0028 int batadv_recv_bcast_packet(struct sk_buff *skb,
0029                  struct batadv_hard_iface *recv_if);
0030 int batadv_recv_tt_query(struct sk_buff *skb,
0031              struct batadv_hard_iface *recv_if);
0032 int batadv_recv_roam_adv(struct sk_buff *skb,
0033              struct batadv_hard_iface *recv_if);
0034 int batadv_recv_unicast_tvlv(struct sk_buff *skb,
0035                  struct batadv_hard_iface *recv_if);
0036 int batadv_recv_unhandled_unicast_packet(struct sk_buff *skb,
0037                      struct batadv_hard_iface *recv_if);
0038 struct batadv_neigh_node *
0039 batadv_find_router(struct batadv_priv *bat_priv,
0040            struct batadv_orig_node *orig_node,
0041            struct batadv_hard_iface *recv_if);
0042 bool batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff,
0043                  s32 seq_old_max_diff, unsigned long *last_reset,
0044                  bool *protection_started);
0045 
0046 #endif /* _NET_BATMAN_ADV_ROUTING_H_ */