projects
/
ossec-hids.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ff79645e59d39a8e90cf12151de09be3d61a367d
[ossec-hids.git]
/
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