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') {
123 * inet_pton6(src, dst)
126 * 1 if `src' is a valid [RFC1884 2.2] address, else 0.
136 inet_pton6(const char *src, unsigned char *dst) {
148 if (*src == ':')
149 if (*++src != ':')
151 curtok = src;
154 while ((ch = *src++) != '\0') {
167 curtok = src;