xref: /linux/net/batman-adv/send.h (revision 64afe35398269577ef9809474dd7dc0e5d265176)
1c6c8fea2SSven Eckelmann /*
2*64afe353SSven Eckelmann  * Copyright (C) 2007-2011 B.A.T.M.A.N. contributors:
3c6c8fea2SSven Eckelmann  *
4c6c8fea2SSven Eckelmann  * Marek Lindner, Simon Wunderlich
5c6c8fea2SSven Eckelmann  *
6c6c8fea2SSven Eckelmann  * This program is free software; you can redistribute it and/or
7c6c8fea2SSven Eckelmann  * modify it under the terms of version 2 of the GNU General Public
8c6c8fea2SSven Eckelmann  * License as published by the Free Software Foundation.
9c6c8fea2SSven Eckelmann  *
10c6c8fea2SSven Eckelmann  * This program is distributed in the hope that it will be useful, but
11c6c8fea2SSven Eckelmann  * WITHOUT ANY WARRANTY; without even the implied warranty of
12c6c8fea2SSven Eckelmann  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13c6c8fea2SSven Eckelmann  * General Public License for more details.
14c6c8fea2SSven Eckelmann  *
15c6c8fea2SSven Eckelmann  * You should have received a copy of the GNU General Public License
16c6c8fea2SSven Eckelmann  * along with this program; if not, write to the Free Software
17c6c8fea2SSven Eckelmann  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18c6c8fea2SSven Eckelmann  * 02110-1301, USA
19c6c8fea2SSven Eckelmann  *
20c6c8fea2SSven Eckelmann  */
21c6c8fea2SSven Eckelmann 
22c6c8fea2SSven Eckelmann #ifndef _NET_BATMAN_ADV_SEND_H_
23c6c8fea2SSven Eckelmann #define _NET_BATMAN_ADV_SEND_H_
24c6c8fea2SSven Eckelmann 
25c6c8fea2SSven Eckelmann #include "types.h"
26c6c8fea2SSven Eckelmann 
27c6c8fea2SSven Eckelmann int send_skb_packet(struct sk_buff *skb,
28c6c8fea2SSven Eckelmann 				struct batman_if *batman_if,
29c6c8fea2SSven Eckelmann 				uint8_t *dst_addr);
30c6c8fea2SSven Eckelmann void schedule_own_packet(struct batman_if *batman_if);
31c6c8fea2SSven Eckelmann void schedule_forward_packet(struct orig_node *orig_node,
32c6c8fea2SSven Eckelmann 			     struct ethhdr *ethhdr,
33c6c8fea2SSven Eckelmann 			     struct batman_packet *batman_packet,
34c6c8fea2SSven Eckelmann 			     uint8_t directlink, int hna_buff_len,
35c6c8fea2SSven Eckelmann 			     struct batman_if *if_outgoing);
36c6c8fea2SSven Eckelmann int add_bcast_packet_to_list(struct bat_priv *bat_priv, struct sk_buff *skb);
37c6c8fea2SSven Eckelmann void send_outstanding_bat_packet(struct work_struct *work);
38c6c8fea2SSven Eckelmann void purge_outstanding_packets(struct bat_priv *bat_priv,
39c6c8fea2SSven Eckelmann 			       struct batman_if *batman_if);
40c6c8fea2SSven Eckelmann 
41c6c8fea2SSven Eckelmann #endif /* _NET_BATMAN_ADV_SEND_H_ */
42