device.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. net.h -- generic header for device.c
  3. Copyright (C) 2001-2002 Ivo Timmermans <zarq@iname.com>
  4. 2001-2002 Guus Sliepen <guus@sliepen.warande.net>
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. $Id: device.h,v 1.1.2.5 2002/02/10 21:57:54 guus Exp $
  17. */
  18. #ifndef __TINC_DEVICE_H__
  19. #define __TINC_DEVICE_H__
  20. extern int device_fd;
  21. extern char *device;
  22. extern char *interface;
  23. extern int setup_device(void);
  24. extern void close_device(void);
  25. extern int read_packet(vpn_packet_t *);
  26. extern int write_packet(vpn_packet_t *);
  27. extern void dump_device_stats(void);
  28. #endif /* __TINC_DEVICE_H__ */