You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

includes.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* This file is part of Netsukuku
  2. * (c) Copyright 2004 Andrea Lo Pumo aka AlpT <alpt@freaknet.org>
  3. *
  4. * This source code is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as published
  6. * by the Free Software Foundation; either version 2 of the License,
  7. * or (at your option) any later version.
  8. *
  9. * This source code 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.
  12. * Please refer to the GNU Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Public License along with
  15. * this source code; if not, write to:
  16. * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18. #ifndef INCLUDES_H
  19. #define INCLUDES_H
  20. #include <string.h>
  21. #include <ctype.h>
  22. #include <stdlib.h>
  23. #include <stdio.h>
  24. #include <syslog.h>
  25. #include <stdarg.h>
  26. #include <errno.h>
  27. #include <sys/time.h>
  28. #include <sys/types.h>
  29. #include <sys/socket.h>
  30. #include <arpa/inet.h>
  31. #include <sys/sendfile.h>
  32. #include <netinet/in.h>
  33. #include <netinet/in_systm.h>
  34. #include <net/if.h>
  35. #include <sys/stat.h>
  36. #include <time.h>
  37. #include <netdb.h>
  38. #include <unistd.h>
  39. #include <getopt.h>
  40. #include <sys/ioctl.h>
  41. #include <fcntl.h>
  42. #include <limits.h>
  43. #include <signal.h>
  44. #include <gmp.h>
  45. #include <pthread.h>
  46. #define _PACKED_ __attribute__ ((__packed__))
  47. #define DEBUG_TEST
  48. /* Currently the IPV6 is disabled */
  49. #define IPV6_DISABLED
  50. #ifdef DEBUG
  51. #warning the DEBUG code is being built!
  52. #include <execinfo.h>
  53. #define ANDNA_DEBUG
  54. #undef USE_DMALLOC
  55. #endif
  56. #endif /*INCLUDES_H*/