tp_meter.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 2012-2016 B.A.T.M.A.N. contributors:
  2. *
  3. * Edo Monticelli, Antonio Quartulli
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of version 2 of the GNU General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef _NET_BATMAN_ADV_TP_METER_H_
  18. #define _NET_BATMAN_ADV_TP_METER_H_
  19. #include "main.h"
  20. #include <linux/types.h>
  21. struct sk_buff;
  22. void batadv_tp_meter_init(void);
  23. void batadv_tp_start(struct batadv_priv *bat_priv, const u8 *dst,
  24. u32 test_length, u32 *cookie);
  25. void batadv_tp_stop(struct batadv_priv *bat_priv, const u8 *dst,
  26. u8 return_value);
  27. void batadv_tp_meter_recv(struct batadv_priv *bat_priv, struct sk_buff *skb);
  28. #endif /* _NET_BATMAN_ADV_TP_METER_H_ */