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 25*747e4221SSven Eckelmann int send_skb_packet(struct sk_buff *skb, struct hard_iface *hard_iface, 26*747e4221SSven Eckelmann const uint8_t *dst_addr); 27e6c10f43SMarek Lindner void schedule_own_packet(struct hard_iface *hard_iface); 28c6c8fea2SSven Eckelmann void schedule_forward_packet(struct orig_node *orig_node, 29*747e4221SSven Eckelmann const struct ethhdr *ethhdr, 30c6c8fea2SSven Eckelmann struct batman_packet *batman_packet, 312dafb49dSAntonio Quartulli uint8_t directlink, int tt_buff_len, 32e6c10f43SMarek Lindner struct hard_iface *if_outgoing); 33*747e4221SSven Eckelmann int add_bcast_packet_to_list(struct bat_priv *bat_priv, 34*747e4221SSven Eckelmann const 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, 37*747e4221SSven Eckelmann const struct hard_iface *hard_iface); 38c6c8fea2SSven Eckelmann 39c6c8fea2SSven Eckelmann #endif /* _NET_BATMAN_ADV_SEND_H_ */ 40