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.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 <stdio.h>
  23. #include <stdlib.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 <ifaddrs.h>
  30. #include <sys/socket.h>
  31. #include <arpa/inet.h>
  32. #include <sys/sendfile.h>
  33. #include <netinet/in.h>
  34. #include <netinet/in_systm.h>
  35. #include <net/if.h>
  36. #include <sys/stat.h>
  37. #include <time.h>
  38. #include <netdb.h>
  39. #include <unistd.h>
  40. #include <getopt.h>
  41. #include <sys/ioctl.h>
  42. #include <fcntl.h>
  43. #include <limits.h>
  44. #include <signal.h>
  45. #include <gmp.h>
  46. #include <pthread.h>
  47. #define _PACKED_ __attribute__ ((__packed__))
  48. #define DEBUG_TEST
  49. /* Currently the IPV6 is disabled */
  50. #define IPV6_DISABLED
  51. #ifdef DEBUG
  52. #warning the DEBUG code is being built!
  53. #include <execinfo.h>
  54. #define ANDNA_DEBUG
  55. #undef USE_DMALLOC
  56. #endif
  57. #endif /*INCLUDES_H */