Lines Matching defs:src
47 * inet_net_pton_ipv4(src, dst, size)
62 inet_net_pton_ipv4(const char *src, u_char *dst, size_t size) {
68 ch = *src++;
69 if (ch == '0' && (src[0] == 'x' || src[0] == 'X')
70 && isascii((unsigned char)(src[1]))
71 && isxdigit((unsigned char)(src[1]))) {
76 src++; /*%< skip x or X. */
77 while ((ch = *src++) != '\0' && isascii(ch) && isxdigit(ch)) {
109 } while ((ch = *src++) != '\0' &&
118 ch = *src++;
126 if (ch == '/' && isascii((unsigned char)(src[0])) &&
127 isdigit((unsigned char)(src[0])) && dst > odst) {
129 ch = *src++; /*%< Skip over the /. */
138 } while ((ch = *src++) != '\0' && isascii(ch) && isdigit(ch));
190 getbits(const char *src, int *bitsp) {
198 while ((ch = *src++) != '\0') {
220 getv4(const char *src, u_char *dst, int *bitsp) {
229 while ((ch = *src++) != '\0') {
247 return (getbits(src, bitsp));
263 inet_net_pton_ipv6(const char *src, u_char *dst, size_t size) {
280 if (*src == ':')
281 if (*++src != ':')
283 curtok = src;
289 while ((ch = *src++) != '\0') {
303 curtok = src;
309 } else if (*src == '\0')
327 if (ch == '/' && getbits(src, &bits) > 0)
383 * inet_net_pton(af, src, dst, size)
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));