Changeset 295 for trunk/include


Ignore:
Timestamp:
Oct 31, 2010, 10:36:04 AM (14 years ago)
Author:
katerina
Message:

Support for IPv6 (ticket #222).

Location:
trunk/include
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r283 r295  
    3434 **************************************************/
    3535
     36/* IPv6 */
     37#if defined(HAVE_GETNAMEINFO) && defined(HAVE_GETADDRINFO)
     38
     39#if defined(SH_COMPILE_STATIC) && defined(__linux__)
     40#undef USE_IPVX
     41#define SH_SOCKMAX 1
     42#else
     43
     44#if defined(USE_IPV4)
     45#undef USE_IPVX
     46#else
     47#define USE_IPVX 1
     48#endif
     49
     50#define SH_SOCKMAX 8
     51#endif
     52
     53#else
     54#undef USE_IPVX
     55#define SH_SOCKMAX 1
     56#endif
     57
     58/* end IPv6 */
     59
    3660#define REPLACE_OLD
    3761
     
    3963 * IPv6 is 8 groups of 4 hex digits seperated by colons.
    4064 */
    41 #define SH_IP_BUF        40
     65#define SH_IP_BUF        48
    4266#define SH_MINIBUF       64
    4367#define SH_BUFSIZE     1024
  • trunk/include/sh_calls.h

    r170 r295  
    3535int sh_aud_set_functions(const char * str_s);
    3636
     37#ifdef SH_IPVX_H
     38long int retry_accept(const char * file, int line,
     39                      int fd, struct sh_sockaddr *serv_addr, int * addrlen);
     40#endif
    3741
    38 long int retry_accept(const char * file, int line,
    39                       int fd, struct sockaddr *serv_addr, int * addrlen);
    4042long int retry_stat (const char * file, int line,
    4143                     const char *file_name, struct stat *buf);
  • trunk/include/sh_tools.h

    r197 r295  
    2828 */
    2929char * sh_tools_safe_name(const char * str, int flag);
    30 int is_numeric (const char * address);
     30
    3131int connect_port (char * address, int port,
    3232                  char * ecall, int * errnum, char * errmsg, int errsiz);
Note: See TracChangeset for help on using the changeset viewer.