Lines Matching refs:dst
47 * inet_net_pton_ipv4(src, dst, size)
50 * "size" is in bytes and describes "dst".
62 inet_net_pton_ipv4(const char *src, u_char *dst, size_t size) {
66 const u_char *odst = dst;
89 *dst++ = (u_char) tmp;
96 *dst++ = (u_char) (tmp << 4);
113 *dst++ = (u_char) tmp;
127 isdigit((unsigned char)(src[0])) && dst > odst) {
148 if (dst == odst)
163 if (bits < ((dst - odst) * 8))
164 bits = (dst - odst) * 8;
173 while (bits > ((dst - odst) * 8)) {
176 *dst++ = '\0';
220 getv4(const char *src, u_char *dst, int *bitsp) {
222 u_char *odst = dst;
243 if (dst - odst > 3) /*%< too many octets? */
245 *dst++ = val;
256 if (dst - odst > 3) /*%< too many octets? */
258 *dst++ = val;
263 inet_net_pton_ipv6(const char *src, u_char *dst, size_t size) {
369 memcpy(dst, tmp, bytes);
383 * inet_net_pton(af, src, dst, size)
386 * "size" is in bytes and describes "dst".
395 inet_net_pton(int af, const char *src, void *dst, size_t size) {
398 return (inet_net_pton_ipv4(src, dst, size));
400 return (inet_net_pton_ipv6(src, dst, size));