Home
last modified time | relevance | path

Searched refs:ip_str (Results 1 – 10 of 10) sorted by relevance

/openbsd/usr.sbin/nsd/
H A Drdata.c673 char ip_str[INET_ADDRSTRLEN + 1]; in rdata_svcparam_ipv4hint_to_string() local
678 if (inet_ntop(AF_INET, data, ip_str, sizeof(ip_str)) == NULL) in rdata_svcparam_ipv4hint_to_string()
681 buffer_printf(output, "=%s", ip_str); in rdata_svcparam_ipv4hint_to_string()
685 if (inet_ntop(AF_INET, data, ip_str, sizeof(ip_str)) == NULL) in rdata_svcparam_ipv4hint_to_string()
688 buffer_printf(output, ",%s", ip_str); in rdata_svcparam_ipv4hint_to_string()
700 char ip_str[INET6_ADDRSTRLEN + 1]; in rdata_svcparam_ipv6hint_to_string() local
705 if (inet_ntop(AF_INET6, data, ip_str, sizeof(ip_str)) == NULL) in rdata_svcparam_ipv6hint_to_string()
708 buffer_printf(output, "=%s", ip_str); in rdata_svcparam_ipv6hint_to_string()
712 if (inet_ntop(AF_INET6, data, ip_str, sizeof(ip_str)) == NULL) in rdata_svcparam_ipv6hint_to_string()
715 buffer_printf(output, ",%s", ip_str); in rdata_svcparam_ipv6hint_to_string()
H A Dzonec.c852 char ip_str[INET_ADDRSTRLEN+1]; in zparser_conv_svcbparam_ipv4hint_value() local
881 } else if (next_ip_str - val >= (int)sizeof(ip_str)) in zparser_conv_svcbparam_ipv4hint_value()
885 memcpy(ip_str, val, next_ip_str - val); in zparser_conv_svcbparam_ipv4hint_value()
886 ip_str[next_ip_str - val] = 0; in zparser_conv_svcbparam_ipv4hint_value()
887 if (inet_pton(AF_INET, ip_str, ip_wire_dst) != 1) { in zparser_conv_svcbparam_ipv4hint_value()
888 val = ip_str; /* to use in error reporting below */ in zparser_conv_svcbparam_ipv4hint_value()
/openbsd/usr.sbin/unbound/dnstap/
H A Ddtstream.c319 free(dtio->ip_str); in dt_io_thread_delete()
373 free(dtio->ip_str); in dt_io_thread_apply_cfg()
375 if(!dtio->ip_str) { in dt_io_thread_apply_cfg()
736 if(!to) to = dtio->ip_str; in dtio_check_nb_connect()
743 if(dtio->ip_str) in dtio_check_nb_connect()
745 dtio->ip_str); in dtio_check_nb_connect()
1329 dtio->ip_str); in dtio_ssl_check_peer()
1338 dtio->ip_str, in dtio_ssl_check_peer()
1344 dtio->ip_str); in dtio_ssl_check_peer()
1358 dtio->ip_str); in dtio_ssl_check_peer()
[all …]
H A Ddtstream.h220 char* ip_str; member
/openbsd/usr.bin/ssh/
H A Dclientloop.c1999 char *host_str, *ip_str; member
2043 free(ctx->ip_str); in hostkeys_update_ctx_free()
2109 "at %s:%ld", ctx->ip_str, l->path, l->linenum); in hostkeys_find()
2192 ctx->ip_str ? ctx->ip_str : "(none)"); in check_old_keys_othernames()
2194 hostkeys_check_old, ctx, ctx->host_str, ctx->ip_str, in check_old_keys_othernames()
2302 ctx->host_str, ctx->ip_str, in update_known_hosts()
2498 options.check_host_ip ? &ctx->ip_str : NULL); in client_input_hostkeys()
2504 ctx->ip_str ? ctx->ip_str : "(none)"); in client_input_hostkeys()
2506 hostkeys_find, ctx, ctx->host_str, ctx->ip_str, in client_input_hostkeys()
2563 ctx->host_str, ctx->ip_str == NULL ? "" : ",", in client_input_hostkeys()
[all …]
/openbsd/usr.sbin/unbound/sldns/
H A Dwire2str.c1044 char ip_str[INET_ADDRSTRLEN + 1]; in sldns_wire2str_svcparam_ipv4hint2str() local
1051 if (inet_ntop(AF_INET, data, ip_str, sizeof(ip_str)) == NULL) in sldns_wire2str_svcparam_ipv4hint2str()
1054 w += sldns_str_print(s, slen, "=%s", ip_str); in sldns_wire2str_svcparam_ipv4hint2str()
1058 if (inet_ntop(AF_INET, data, ip_str, sizeof(ip_str)) == NULL) in sldns_wire2str_svcparam_ipv4hint2str()
1061 w += sldns_str_print(s, slen, ",%s", ip_str); in sldns_wire2str_svcparam_ipv4hint2str()
1073 char ip_str[INET6_ADDRSTRLEN + 1]; in sldns_wire2str_svcparam_ipv6hint2str() local
1080 if (inet_ntop(AF_INET6, data, ip_str, sizeof(ip_str)) == NULL) in sldns_wire2str_svcparam_ipv6hint2str()
1083 w += sldns_str_print(s, slen, "=%s", ip_str); in sldns_wire2str_svcparam_ipv6hint2str()
1087 if (inet_ntop(AF_INET6, data, ip_str, sizeof(ip_str)) == NULL) in sldns_wire2str_svcparam_ipv6hint2str()
1090 w += sldns_str_print(s, slen, ",%s", ip_str); in sldns_wire2str_svcparam_ipv6hint2str()
H A Dstr2wire.c1202 char ip_str[INET_ADDRSTRLEN+1]; in sldns_str2wire_svcbparam_ipv4hint() local
1232 } else if (next_ip_str - val >= (int)sizeof(ip_str)) in sldns_str2wire_svcbparam_ipv4hint()
1236 memcpy(ip_str, val, next_ip_str - val); in sldns_str2wire_svcbparam_ipv4hint()
1237 ip_str[next_ip_str - val] = 0; in sldns_str2wire_svcbparam_ipv4hint()
1238 if (inet_pton(AF_INET, ip_str, rd + *rd_len) != 1) { in sldns_str2wire_svcbparam_ipv4hint()
1257 char ip_str[INET6_ADDRSTRLEN+1]; in sldns_str2wire_svcbparam_ipv6hint() local
1287 } else if (next_ip_str - val >= (int)sizeof(ip_str)) in sldns_str2wire_svcbparam_ipv6hint()
1291 memcpy(ip_str, val, next_ip_str - val); in sldns_str2wire_svcbparam_ipv6hint()
1292 ip_str[next_ip_str - val] = 0; in sldns_str2wire_svcbparam_ipv6hint()
1293 if (inet_pton(AF_INET6, ip_str, rd + *rd_len) != 1) { in sldns_str2wire_svcbparam_ipv6hint()
/openbsd/sbin/unwind/libunbound/sldns/
H A Dwire2str.c1044 char ip_str[INET_ADDRSTRLEN + 1]; in sldns_wire2str_svcparam_ipv4hint2str() local
1051 if (inet_ntop(AF_INET, data, ip_str, sizeof(ip_str)) == NULL) in sldns_wire2str_svcparam_ipv4hint2str()
1054 w += sldns_str_print(s, slen, "=%s", ip_str); in sldns_wire2str_svcparam_ipv4hint2str()
1058 if (inet_ntop(AF_INET, data, ip_str, sizeof(ip_str)) == NULL) in sldns_wire2str_svcparam_ipv4hint2str()
1061 w += sldns_str_print(s, slen, ",%s", ip_str); in sldns_wire2str_svcparam_ipv4hint2str()
1073 char ip_str[INET6_ADDRSTRLEN + 1]; in sldns_wire2str_svcparam_ipv6hint2str() local
1080 if (inet_ntop(AF_INET6, data, ip_str, sizeof(ip_str)) == NULL) in sldns_wire2str_svcparam_ipv6hint2str()
1083 w += sldns_str_print(s, slen, "=%s", ip_str); in sldns_wire2str_svcparam_ipv6hint2str()
1087 if (inet_ntop(AF_INET6, data, ip_str, sizeof(ip_str)) == NULL) in sldns_wire2str_svcparam_ipv6hint2str()
1090 w += sldns_str_print(s, slen, ",%s", ip_str); in sldns_wire2str_svcparam_ipv6hint2str()
H A Dstr2wire.c1202 char ip_str[INET_ADDRSTRLEN+1]; in sldns_str2wire_svcbparam_ipv4hint() local
1232 } else if (next_ip_str - val >= (int)sizeof(ip_str)) in sldns_str2wire_svcbparam_ipv4hint()
1236 memcpy(ip_str, val, next_ip_str - val); in sldns_str2wire_svcbparam_ipv4hint()
1237 ip_str[next_ip_str - val] = 0; in sldns_str2wire_svcbparam_ipv4hint()
1238 if (inet_pton(AF_INET, ip_str, rd + *rd_len) != 1) { in sldns_str2wire_svcbparam_ipv4hint()
1257 char ip_str[INET6_ADDRSTRLEN+1]; in sldns_str2wire_svcbparam_ipv6hint() local
1287 } else if (next_ip_str - val >= (int)sizeof(ip_str)) in sldns_str2wire_svcbparam_ipv6hint()
1291 memcpy(ip_str, val, next_ip_str - val); in sldns_str2wire_svcbparam_ipv6hint()
1292 ip_str[next_ip_str - val] = 0; in sldns_str2wire_svcbparam_ipv6hint()
1293 if (inet_pton(AF_INET6, ip_str, rd + *rd_len) != 1) { in sldns_str2wire_svcbparam_ipv6hint()
/openbsd/usr.sbin/unbound/daemon/
H A Dremote.c2462 char ip_str[1024]; in dump_infra_host() local
2467 addr_to_str(&k->addr, k->addrlen, ip_str, sizeof(ip_str)); in dump_infra_host()
2471 snprintf(ip_str+strlen(ip_str), sizeof(ip_str)-strlen(ip_str), in dump_infra_host()
2477 if(!ssl_printf(a->ssl, "%s %s expired rto %d\n", ip_str, in dump_infra_host()
2488 "other %d\n", ip_str, name, (unsigned long)(d->ttl - a->now), in dump_infra_host()