Lines Matching refs:dst
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)
42 * 0 if the address wasn't valid (`dst' is untouched in this case)
43 * -1 if some other error occurred (`dst' is untouched in this case, too)
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)
67 * does not touch `dst' unless it's returning 1.
72 inet_pton4(const char *src, unsigned char *dst) {
110 memmove(dst, tmp, NS_INADDRSZ);
115 * inet_pton6(src, dst)
120 * (1) does not touch `dst' unless it's returning 1.
128 inet_pton6(const char *src, unsigned char *dst) {
204 memmove(dst, tmp, NS_IN6ADDRSZ);