X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Fvalidate_op.h;h=ade6afa846e73be64d15638e198651328d842370;hb=372b53a05f545963ee37488149828312a47b3171;hp=6aafdfe11ca914f7d60737124c5a2d8bd5488838;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/headers/validate_op.h b/src/headers/validate_op.h index 6aafdfe..ade6afa 100755 --- a/src/headers/validate_op.h +++ b/src/headers/validate_op.h @@ -1,11 +1,12 @@ -/* @(#) $Id: validate_op.h,v 1.13 2009/06/24 17:06:26 dcid Exp $ */ +/* @(#) $Id: ./src/headers/validate_op.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -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 */