X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fheaders%2Fvalidate_op.h;h=ade6afa846e73be64d15638e198651328d842370;hp=e8e7094e895345796189010329f0a973a8654c91;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/headers/validate_op.h b/src/headers/validate_op.h index e8e7094..ade6afa 100755 --- a/src/headers/validate_op.h +++ b/src/headers/validate_op.h @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/headers/validate_op.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. @@ -42,7 +43,7 @@ int getDefine_Int(char *high_name, char *low_name, int min, int max); */ int OS_IPFound(char *ip_address, os_ip *that_ip); - + /** int OS_IPFoundList(char *ip_address, char **list_of_ips) * Checks if ip_address is present on the "list_of_ips". @@ -60,8 +61,8 @@ int OS_IPFoundList(char *ip_address, os_ip **list_of_ips); * ** On success this function may modify the value of ip_address */ int OS_IsValidIP(char *ip_address, os_ip *final_ip); - - + + /** Time range validations **/ /** char *OS_IsValidTime(char *time_str) @@ -77,9 +78,9 @@ int OS_IsValidIP(char *ip_address, os_ip *final_ip); * hh:mm am - hh:mm pm (12 hour format) * hh am - hh pm (12 hour format) */ -char *OS_IsValidTime(char *time_str); +char *OS_IsValidTime(char *time_str); -/* Same as above, but only accepts a unique time, not a range. */ +/* Same as above, but only accepts a unique time, not a range. */ char *OS_IsValidUniqueTime(char *time_str); @@ -103,7 +104,7 @@ int OS_IsAfterTime(char *time_str, char *ossec_time); * range. */ int OS_IsonDay(int week_day, char *ossec_day); - + /** char *OS_IsValidDay(char *day_str) * Validates if an day is in an acceptable format @@ -123,7 +124,7 @@ char *OS_IsValidDay(char *day_str); /* Checks if the ip is a single host, not a network with a netmask */ #define isSingleHost(x) (x->netmask == 0xFFFFFFFF) - + #endif /* EOF */