1c6c8fea2SSven Eckelmann /* 264afe353SSven 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 int send_skb_packet(struct sk_buff *skb, 26e6c10f43SMarek Lindner struct hard_iface *hard_iface, 27c6c8fea2SSven Eckelmann uint8_t *dst_addr); 28e6c10f43SMarek Lindner void schedule_own_packet(struct hard_iface *hard_iface); 29c6c8fea2SSven Eckelmann void schedule_forward_packet(struct orig_node *orig_node, 30c6c8fea2SSven Eckelmann struct ethhdr *ethhdr, 31c6c8fea2SSven Eckelmann struct batman_packet *batman_packet, 32*2dafb49dSAntonio Quartulli uint8_t directlink, int tt_buff_len, 33e6c10f43SMarek Lindner struct hard_iface *if_outgoing); 34c6c8fea2SSven Eckelmann int add_bcast_packet_to_list(struct bat_priv *bat_priv, struct sk_buff *skb); 35c6c8fea2SSven Eckelmann void send_outstanding_bat_packet(struct work_struct *work); 36c6c8fea2SSven Eckelmann void purge_outstanding_packets(struct bat_priv *bat_priv, 37e6c10f43SMarek Lindner struct hard_iface *hard_iface); 38c6c8fea2SSven Eckelmann 39c6c8fea2SSven Eckelmann #endif /* _NET_BATMAN_ADV_SEND_H_ */ 40