Lines Matching refs:src
33 static int inet_pton4(const char *src, u_char *dst);
34 static int inet_pton6(const char *src, u_char *dst);
37 * inet_pton(af, src, dst)
48 inet_pton(int af, const char *src, void *dst)
52 return (inet_pton4(src, dst));
54 return (inet_pton6(src, dst));
63 * inet_pton4(src, dst)
66 * 1 if `src' is a valid dotted quad, else 0.
73 inet_pton4(const char *src, u_char *dst)
82 while ((ch = *src++) != '\0') {
112 * inet_pton6(src, dst)
115 * 1 if `src' is a valid [RFC1884 2.2] address, else 0.
125 inet_pton6(const char *src, u_char *dst)
138 if (*src == ':')
139 if (*++src != ':')
141 curtok = src;
144 while ((ch = *src++) != '\0') {
161 curtok = src;
167 } else if (*src == '\0') {