Lines Matching refs:dst
44 char *dst, size_t size));
46 char *dst, size_t size));
59 inet_net_ntop(af, src, bits, dst, size) in inet_net_ntop() argument
63 char *dst;
68 return (inet_net_ntop_ipv4(src, bits, dst, size));
70 return (inet_net_ntop_ipv6(src, bits, dst, size));
91 inet_net_ntop_ipv4(src, bits, dst, size) in inet_net_ntop_ipv4() argument
94 char *dst;
97 char *odst = dst;
110 *dst++ = '0';
112 *dst = '\0';
119 t = dst;
120 dst += SPRINTF((dst, "%u", *src++));
122 *dst++ = '.';
123 *dst = '\0';
125 size -= (size_t)(dst - t);
133 t = dst;
134 if (dst != odst)
135 *dst++ = '.';
137 dst += SPRINTF((dst, "%u", *src & m));
138 size -= (size_t)(dst - t);
144 dst += SPRINTF((dst, "/%u", bits));
170 inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) { in inet_net_ntop_ipv6() argument
271 strcpy(dst, outbuf); in inet_net_ntop_ipv6()
273 return (dst); in inet_net_ntop_ipv6()