Home | History | Annotate | Download | only in inet

Lines Matching refs:dst

61 static int	inet_pton4(const char *src, u_char *dst, int pton);
62 static int inet_pton6(const char *src, u_char *dst);
65 * inet_pton(af, src, dst)
70 * 0 if the address wasn't valid (`dst' is untouched in this case)
71 * -1 if some other error occurred (`dst' is untouched in this case, too)
76 inet_pton(int af, const char *src, void *dst)
80 _DIAGASSERT(dst != NULL);
84 return (inet_pton4(src, dst, 1));
86 return (inet_pton6(src, dst));
95 * inet_pton4(src, dst, pton)
101 * does not touch `dst' unless it's returning 1.
106 inet_pton4(const char *src, u_char *dst, int pton)
116 _DIAGASSERT(dst != NULL);
208 if (dst) {
210 memcpy(dst, &val, NS_INADDRSZ);
216 * inet_pton6(src, dst)
221 * (1) does not touch `dst' unless it's returning 1.
229 inet_pton6(const char *src, u_char *dst)
239 _DIAGASSERT(dst != NULL);
312 memcpy(dst, tmp, NS_IN6ADDRSZ);