-/* @(#) $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
*/
*/
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".
* ** 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)
* 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);
* 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
/* Checks if the ip is a single host, not a network with a netmask */
#define isSingleHost(x) (x->netmask == 0xFFFFFFFF)
-
+
#endif
/* EOF */