ipaddrparse.h 566 B

1234567891011121314151617181920
  1. #ifndef VSF_IPADDRPARSE_H
  2. #define VSF_IPADDRPARSE_H
  3. struct mystr;
  4. /* Effectively doing the same sort of job as inet_pton. Since inet_pton does
  5. * a non-trivial amount of parsing, we'll do it ourselves for maximum security
  6. * and safety.
  7. */
  8. const unsigned char* vsf_sysutil_parse_ipv6(const struct mystr* p_str);
  9. const unsigned char* vsf_sysutil_parse_ipv4(const struct mystr* p_str);
  10. const unsigned char* vsf_sysutil_parse_uchar_string_sep(
  11. const struct mystr* p_str, char sep, unsigned char* p_items,
  12. unsigned int items);
  13. #endif /* VSF_IPADDRPARSE_H */