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

Support for IPv6 (ticket #222).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cutest_sh_tools.c

    r19 r295  
    66#include "samhain.h"
    77#include "sh_tools.h"
     8#include "sh_ipvx.h"
    89
    910void Test_sh_tools_safe_name_01(CuTest *tc) {
     
    106107  char* input  = strdup("hello world");
    107108
    108   CuAssertTrue(tc, !is_numeric(input));
     109  CuAssertTrue(tc, !sh_ipvx_is_numeric(input));
    109110
    110111  input  = strdup("127.0.0.1");
    111   CuAssertTrue(tc, is_numeric(input));
     112  CuAssertTrue(tc, sh_ipvx_is_numeric(input));
    112113  input  = strdup("127.0.0.de");
    113   CuAssertTrue(tc, !is_numeric(input));
     114  CuAssertTrue(tc, !sh_ipvx_is_numeric(input));
    114115  input  = strdup("127");
    115   CuAssertTrue(tc, is_numeric(input));
     116  CuAssertTrue(tc, sh_ipvx_is_numeric(input));
    116117}
    117118
Note: See TracChangeset for help on using the changeset viewer.