Lines Matching defs:src
42 static char * inet_net_ntop_ipv4 __P((const u_char *src, int bits,
44 static char * inet_net_ntop_ipv6 __P((const u_char *src, int bits,
49 * inet_net_ntop(af, src, bits, dst, size)
58 inet_net_ntop(af, src, bits, dst, size)
60 const void *src;
67 return (inet_net_ntop_ipv4(src, bits, dst, size));
69 return (inet_net_ntop_ipv6(src, bits, dst, size));
78 * inet_net_ntop_ipv4(src, bits, dst, size)
90 inet_net_ntop_ipv4(src, bits, dst, size)
91 const u_char *src;
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) {
194 /* Copy src to private buffer. Zero host part. */
196 memcpy(inbuf, src, p);