Lines Matching refs:src
32 static int inet_pton4(const char *src, unsigned char *dst);
33 static int inet_pton6(const char *src, unsigned char *dst);
37 * lwres_net_pton(af, src, dst)
48 lwres_net_pton(int af, const char *src, void *dst) {
51 return (inet_pton4(src, dst));
53 return (inet_pton6(src, dst));
62 * inet_pton4(src, dst)
65 * 1 if `src' is a valid dotted quad, else 0.
72 inet_pton4(const char *src, unsigned char *dst) {
80 while ((ch = *src++) != '\0') {
115 * inet_pton6(src, dst)
118 * 1 if `src' is a valid [RFC1884 2.2] address, else 0.
128 inet_pton6(const char *src, unsigned char *dst) {
140 if (*src == ':')
141 if (*++src != ':')
143 curtok = src;
146 while ((ch = *src++) != '\0') {
159 curtok = src;