Lines Matching defs:dst
52 char *dst, size_t size);
54 char *dst, size_t size);
58 * inet_net_ntop(af, src, bits, dst, size)
62 * pointer to dst, or NULL if an error occurred (check errno).
67 inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size)
71 return (inet_net_ntop_ipv4(src, bits, dst, size));
73 return (inet_net_ntop_ipv6(src, bits, dst, size));
82 * inet_net_ntop_ipv4(src, bits, dst, size)
86 * pointer to dst, or NULL if an error occurred (check errno).
94 inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size)
96 char *odst = dst;
109 *dst++ = '0';
111 *dst = '\0';
118 t = dst;
119 dst += SPRINTF((dst, "%u", *src++));
121 *dst++ = '.';
122 *dst = '\0';
124 size -= (size_t)(dst - t);
132 t = dst;
133 if (dst != odst)
134 *dst++ = '.';
136 dst += SPRINTF((dst, "%u", *src & m));
137 size -= (size_t)(dst - t);
143 dst += SPRINTF((dst, "/%u", bits));
153 * inet_net_ntop_ipv6(src, bits, fakebits, dst, size)
159 * pointer to dst, or NULL if an error occurred (check errno).
169 inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size)
271 strcpy(dst, outbuf);
273 return (dst);