Lines Matching refs:src
51 static char * inet_net_ntop_ipv4(const u_char *src, int bits,
53 static char * inet_net_ntop_ipv6(const u_char *src, int bits,
58 * inet_net_ntop(af, src, bits, dst, size)
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)
94 inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size)
119 dst += SPRINTF((dst, "%u", *src++));
136 dst += SPRINTF((dst, "%u", *src & m));
153 * inet_net_ntop_ipv6(src, bits, fakebits, dst, size)
169 inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size)
195 /* Copy src to private buffer. Zero host part. */
197 memcpy(inbuf, src, p);