new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / shared / tests / ip_test.c
1 #include <stdio.h>
2 #include <string.h>
3
4 #include "validate_op.h"
5
6
7 int main(int argc, char **argv)
8 {
9     os_ip myip;
10
11     if (!argv[1]) {
12         return (1);
13     }
14
15     if (!OS_IsValidIP(argv[1], &myip)) {
16         printf("Invalid ip\n");
17     }
18
19     if (OS_IPFound(argv[2], &myip)) {
20         printf("IP MATCHED!\n");
21     }
22
23     return (0);
24 }
25