Lines Matching refs:src
41 static int inet_pton4(const char *src, unsigned char *dst);
42 static int inet_pton6(const char *src, unsigned char *dst);
46 * lwres_net_pton(af, src, dst)
57 lwres_net_pton(int af, const char *src, void *dst) {
60 return (inet_pton4(src, dst));
62 return (inet_pton6(src, dst));
71 * inet_pton4(src, dst)
74 * 1 if `src' is a valid dotted quad, else 0.
81 inet_pton4(const char *src, unsigned char *dst) {
89 while ((ch = *src++) != '\0') {
124 * inet_pton6(src, dst)
127 * 1 if `src' is a valid [RFC1884 2.2] address, else 0.
137 inet_pton6(const char *src, unsigned char *dst) {
149 if (*src == ':')
150 if (*++src != ':')
152 curtok = src;
155 while ((ch = *src++) != '\0') {
168 curtok = src;