acl/lib_acl/include/net/acl_valid_hostname.h
zsxxsz cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00

28 lines
585 B
C

#ifndef __ACL_VALID_HOSTNAME_H_INCLUDED__
#define __ACL_VALID_HOSTNAME_H_INCLUDED__
#ifdef __cplusplus
extern "C" {
#endif
#include "stdlib/acl_define.h"
/* External interface */
#define ACL_VALID_HOSTNAME_LEN 255 /* RFC 1035 */
#define ACL_VALID_LABEL_LEN 63 /* RFC 1035 */
#define ACL_DONT_GRIPE 0
#define ACL_DO_GRIPE 1
ACL_API int acl_valid_hostname(const char *, int);
ACL_API int acl_valid_hostaddr(const char *, int);
ACL_API int acl_valid_ipv4_hostaddr(const char *, int);
ACL_API int acl_valid_ipv6_hostaddr(const char *, int);
#ifdef __cplusplus
}
#endif
#endif