00001 #ifndef VSF_IPADDRPARSE_H 00002 #define VSF_IPADDRPARSE_H 00003 00004 struct mystr; 00005 00006 /* Effectively doing the same sort of job as inet_pton. Since inet_pton does 00007 * a non-trivial amount of parsing, we'll do it ourselves for maximum security 00008 * and safety. 00009 */ 00010 00011 const unsigned char* vsf_sysutil_parse_ipv6(const struct mystr* p_str); 00012 00013 const unsigned char* vsf_sysutil_parse_ipv4(const struct mystr* p_str); 00014 00015 const unsigned char* vsf_sysutil_parse_uchar_string_sep( 00016 const struct mystr* p_str, char sep, unsigned char* p_items, 00017 unsigned int items); 00018 00019 #endif /* VSF_IPADDRPARSE_H */ 00020