projects
/
ossec-hids.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- #10324: instalacija
[ossec-hids.git]
/
src
/
shared
/
tests
/
ip_test.c
1
#include <stdio.h>
2
#include <string.h>
3
#include "validate_op.h"
4
5
6
int main(int argc, char **argv)
7
{
8
os_ip myip;
9
10
if(!argv[1])
11
return(1);
12
13
if(!OS_IsValidIP(argv[1], &myip))
14
{
15
printf("Invalid ip\n");
16
}
17
18
if(OS_IPFound(argv[2], &myip))
19
{
20
printf("IP MATCHED!\n");
21
}
22
return(0);
23
}
24
25
26
/* EOF */