/openbsd/sbin/unwind/libunbound/iterator/ |
H A D | iter_hints.c | 58 if(!hints) in hints_create() 60 lock_rw_init(&hints->lock); in hints_create() 61 lock_protect(&hints->lock, &hints->tree, sizeof(hints->tree)); in hints_create() 62 return hints; in hints_create() 86 if(!hints) in hints_delete() 88 lock_rw_destroy(&hints->lock); in hints_delete() 89 hints_del_tree(hints); in hints_delete() 90 free(hints); in hints_delete() 446 hints_del_tree(hints); in hints_apply_cfg() 564 if(!hints) return 0; in hints_get_mem() [all …]
|
H A D | iter_hints.h | 92 void hints_delete(struct iter_hints* hints); 100 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg); 115 struct delegpt* hints_find(struct iter_hints* hints, uint8_t* qname, 125 struct delegpt* hints_find_root(struct iter_hints* hints, 141 int hints_next_root(struct iter_hints* hints, uint16_t* qclass, int nolock); 161 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints, 170 size_t hints_get_mem(struct iter_hints* hints); 185 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp, 198 void hints_delete_stub(struct iter_hints* hints, uint16_t c,
|
/openbsd/usr.sbin/unbound/iterator/ |
H A D | iter_hints.c | 58 if(!hints) in hints_create() 60 lock_rw_init(&hints->lock); in hints_create() 61 lock_protect(&hints->lock, &hints->tree, sizeof(hints->tree)); in hints_create() 62 return hints; in hints_create() 86 if(!hints) in hints_delete() 88 lock_rw_destroy(&hints->lock); in hints_delete() 89 hints_del_tree(hints); in hints_delete() 90 free(hints); in hints_delete() 446 hints_del_tree(hints); in hints_apply_cfg() 564 if(!hints) return 0; in hints_get_mem() [all …]
|
H A D | iter_hints.h | 92 void hints_delete(struct iter_hints* hints); 100 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg); 115 struct delegpt* hints_find(struct iter_hints* hints, uint8_t* qname, 125 struct delegpt* hints_find_root(struct iter_hints* hints, 141 int hints_next_root(struct iter_hints* hints, uint16_t* qclass, int nolock); 161 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints, 170 size_t hints_get_mem(struct iter_hints* hints); 185 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp, 198 void hints_delete_stub(struct iter_hints* hints, uint16_t c,
|
/openbsd/regress/lib/libc/asr/bin/ |
H A D | getaddrinfo.c | 45 struct addrinfo *ai, *res, hints; in main() local 49 memset(&hints, 0, sizeof hints); in main() 54 hints.ai_flags |= AI_CANONNAME; in main() 57 hints.ai_flags |= AI_FQDN; in main() 60 hints.ai_flags |= AI_NUMERICHOST; in main() 63 hints.ai_flags |= AI_PASSIVE; in main() 69 hints.ai_flags |= AI_NUMERICSERV; in main() 76 hints.ai_family = AF_INET; in main() 78 hints.ai_family = AF_INET6; in main() 101 hints.ai_socktype = SOCK_DGRAM; in main() [all …]
|
/openbsd/usr.sbin/lpr/lpd/ |
H A D | allowedhost.c | 135 struct addrinfo hints, *res, *r; in checkhost() local 145 memset(&hints, 0, sizeof(hints)); in checkhost() 146 hints.ai_family = raddr->sa_family; in checkhost() 182 struct addrinfo hints, *res, *r; in gethostloop() local 197 memset(&hints, 0, sizeof(hints)); in gethostloop() 198 hints.ai_family = raddr->sa_family; in gethostloop() 200 hints.ai_flags = AI_CANONNAME; in gethostloop() 231 struct addrinfo hints; in main() local 234 memset(&hints, 0, sizeof(hints)); in main() 235 hints.ai_family = PF_UNSPEC; in main() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/autodie/t/lib/ |
H A D | Hints_test.pm | 11 use autodie::hints; 21 autodie::hints->set_hints_for( 23 list => autodie::hints::EMPTY_ONLY , 24 scalar => autodie::hints::EMPTY_ONLY 28 autodie::hints->set_hints_for( 30 list => autodie::hints::EMPTY_OR_FALSE , 31 scalar => autodie::hints::EMPTY_OR_FALSE 35 autodie::hints->set_hints_for( 37 list => autodie::hints::EMPTY_OR_UNDEF , 38 scalar => autodie::hints::EMPTY_OR_UNDEF
|
/openbsd/regress/sys/netinet/ipsec/ |
H A D | nonxt-sendrecv.c | 43 struct addrinfo hints, *res, *res0; in main() local 68 memset(&hints, 0, sizeof(hints)); in main() 69 hints.ai_family = AF_UNSPEC; in main() 70 hints.ai_socktype = SOCK_RAW; in main() 71 hints.ai_protocol = IPPROTO_NONE; in main() 72 error = getaddrinfo(remote, NULL, &hints, &res0); in main() 95 memset(&hints, 0, sizeof(hints)); in main() 96 hints.ai_family = res->ai_family; in main() 97 hints.ai_socktype = SOCK_RAW; in main() 98 hints.ai_protocol = IPPROTO_NONE; in main() [all …]
|
H A D | nonxt-reflect.c | 43 struct addrinfo hints, *res, *res0; in main() local 62 memset(&hints, 0, sizeof(hints)); in main() 63 hints.ai_family = AF_UNSPEC; in main() 64 hints.ai_socktype = SOCK_RAW; in main() 65 hints.ai_protocol = IPPROTO_NONE; in main() 66 hints.ai_flags = AI_PASSIVE; in main() 67 error = getaddrinfo(local, NULL, &hints, &res0); in main()
|
/openbsd/usr.sbin/ntpd/ |
H A D | config.c | 61 struct addrinfo hints, *res; in host_ip() local 64 memset(&hints, 0, sizeof(hints)); in host_ip() 65 hints.ai_family = AF_UNSPEC; in host_ip() 66 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in host_ip() 67 hints.ai_flags = AI_NUMERICHOST; in host_ip() 95 struct addrinfo hints, *res0, *res; in host_dns1() local 99 memset(&hints, 0, sizeof(hints)); in host_dns1() 100 hints.ai_family = AF_UNSPEC; in host_dns1() 101 hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ in host_dns1() 102 hints.ai_flags = AI_ADDRCONFIG; in host_dns1() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/autodie/lib/autodie/ |
H A D | hints.pm | 1 package autodie::hints; 451 my ($class, $hints, $sub) = @_; 453 if ( exists $hints->{$sub}->{fail} ) { 455 if ( exists $hints->{$sub}->{scalar} or 456 exists $hints->{$sub}->{list} 466 $hints->{$sub}->{scalar} = 467 $hints->{$sub}->{list} = delete $hints->{$sub}->{fail}; 476 if ( not exists $hints->{$sub}->{$hint} ) { 516 my ($class, $sub, $hints) = @_; 527 warn "autodie::hints: Setting $sub to hints: $hints\n"; [all …]
|
/openbsd/regress/sys/kern/sosplice/perf/ |
H A D | relay.c | 133 hints->ai_flags = AI_PASSIVE; in socket_listen() 160 if (hints->ai_socktype == SOCK_STREAM) { in socket_listen() 238 hints->ai_flags = 0; in socket_connect() 284 struct addrinfo hints; in main() local 310 memset(&hints, 0, sizeof(hints)); in main() 311 hints.ai_family = PF_UNSPEC; in main() 312 hints.ai_socktype = SOCK_STREAM; in main() 317 hints.ai_family = PF_INET; in main() 320 hints.ai_family = PF_INET6; in main() 326 hints.ai_socktype = SOCK_STREAM; in main() [all …]
|
/openbsd/lib/libc/net/ |
H A D | ruserok.c | 60 struct addrinfo hints, *res, *r; in ruserok() local 63 memset(&hints, 0, sizeof(hints)); in ruserok() 64 hints.ai_family = PF_UNSPEC; in ruserok() 65 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in ruserok() 302 struct addrinfo hints, *res, *r; in __icheckhost() local 313 memset(&hints, 0, sizeof(hints)); in __icheckhost() 314 hints.ai_family = raddr->sa_family; in __icheckhost() 350 struct addrinfo hints, *res, *r; in __gethostloop() local 366 memset(&hints, 0, sizeof(hints)); in __gethostloop() 367 hints.ai_family = raddr->sa_family; in __gethostloop() [all …]
|
/openbsd/usr.sbin/radiusd/ |
H A D | util.c | 36 struct addrinfo hints; in addrport_parse() local 61 memset(&hints, 0, sizeof(hints)); in addrport_parse() 62 hints.ai_flags = AI_NUMERICHOST; in addrport_parse() 63 hints.ai_family = AF_UNSPEC; in addrport_parse() 66 hints.ai_socktype = SOCK_STREAM; in addrport_parse() 69 hints.ai_socktype = SOCK_DGRAM; in addrport_parse() 72 hints.ai_protocol = proto; in addrport_parse() 74 return (getaddrinfo(nodep, servp, &hints, p_ai)); in addrport_parse()
|
/openbsd/gnu/usr.bin/perl/cpan/autodie/t/ |
H A D | hints.t | 4 use autodie::hints; 38 my $hints = "autodie::hints"; 42 is( $hints->sub_fullname(\©), 'File::Copy::copy' , "Id: copy" ); 44 $hints->sub_fullname(\&cp), 48 is( $hints->sub_fullname(\&move), 'File::Copy::move' , "Id: move" ); 49 is( $hints->sub_fullname(\&mv), 54 ok( $hints->get_hints_for(\©)->{scalar}->(0) , 57 ok( $hints->get_hints_for(\©)->{list}->(0) ,
|
/openbsd/usr.sbin/ypset/ |
H A D | ypset.c | 57 struct addrinfo hints, *res; in bind_tohost() local 69 memset(&hints, 0, sizeof(hints)); in bind_tohost() 70 hints.ai_family = AF_INET; in bind_tohost() 72 if (getaddrinfo(server, NULL, &hints, &res) != 0) in bind_tohost() 110 struct addrinfo hints, *res; in main() local 128 memset(&hints, 0, sizeof(hints)); in main() 129 hints.ai_family = AF_INET; in main() 131 if (getaddrinfo(optarg, NULL, &hints, &res) != 0) in main()
|
/openbsd/gnu/usr.bin/perl/cpan/IO-Socket-IP/lib/IO/Socket/ |
H A D | IP.pm | 416 my %hints; 430 $hints{flags} = $AI_ADDRCONFIG; 434 $hints{family} = $family; 438 $hints{socktype} = $type; 450 $hints{protocol} = $proto; 455 if( !defined $hints{socktype} and !defined $hints{protocol} ) { 462 if( !defined $hints{socktype} and defined $hints{protocol} ) { 463 $hints{socktype} = SOCK_STREAM if $hints{protocol} == IPPROTO_TCP; 464 $hints{socktype} = SOCK_DGRAM if $hints{protocol} == IPPROTO_UDP; 486 my %localhints = %hints; [all …]
|
/openbsd/regress/lib/libpthread/getaddrinfo/ |
H A D | getaddrinfo.c | 67 struct addrinfo hints, *res; local 71 memset(&hints, 0, sizeof(hints)); 72 hints.ai_family = PF_UNSPEC; 73 hints.ai_socktype = SOCK_DGRAM; 74 hints.ai_flags = AI_CANONNAME; 79 if (getaddrinfo("www.openbsd.org", "0", &hints, &res))
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
H A D | 20020615-1.c | 23 int hints; in line_hints() local 37 hints = dy > 0 ? 2 : 1; in line_hints() 39 hints ^= 3; in line_hints() 41 hints = dx < 0 ? 8 : 4; in line_hints() 43 hints ^= 12; in line_hints() 45 hints = 0; in line_hints() 46 return hints; in line_hints()
|
/openbsd/regress/sys/netinet6/srcaddr/ |
H A D | srcaddr.c | 36 struct addrinfo hints, *res; in main() local 56 memset(&hints, 0, sizeof(hints)); in main() 57 hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV; in main() 58 hints.ai_family = AF_INET6; in main() 59 hints.ai_socktype = SOCK_DGRAM; in main() 61 if ((error = getaddrinfo(target, "8888", &hints, &res))) in main()
|
/openbsd/gnu/usr.bin/perl/cpan/autodie/lib/ |
H A D | Fatal.pm | 926 require autodie::hints; 928 $hints = autodie::hints->get_hints_for( $sref ); 1110 if ( $hints && exists $hints->{list} ) { 1112 if ( ref($hints->{list}) eq 'CODE' ) { 1123 elsif ( !defined $hints->{list} ) { 1167 if ( $hints && exists $hints->{scalar} ) { 1178 elsif ( !defined $hints->{scalar} ) { 1319 require autodie::hints; 1321 $hints = autodie::hints->get_hints_for( $sref ); 1326 if ($insist and not $hints) { [all …]
|
/openbsd/usr.bin/whois/ |
H A D | whois.c | 173 struct addrinfo hints, *res, *ai; in whois() local 175 memset(&hints, 0, sizeof(hints)); in whois() 176 hints.ai_flags = 0; in whois() 177 hints.ai_family = AF_UNSPEC; in whois() 178 hints.ai_socktype = SOCK_STREAM; in whois() 179 error = getaddrinfo(server, port, &hints, &res); in whois() 297 struct addrinfo hints, *res = NULL; in choose_server() local 299 memset(&hints, 0, sizeof(hints)); in choose_server() 300 hints.ai_flags = 0; in choose_server() 301 hints.ai_family = AF_UNSPEC; in choose_server() [all …]
|
/openbsd/usr.sbin/npppd/common/ |
H A D | net_utils.c | 94 struct addrinfo hints; in addrport_parse() local 119 memset(&hints, 0, sizeof(hints)); in addrport_parse() 120 hints.ai_flags = AI_NUMERICHOST; in addrport_parse() 121 hints.ai_family = AF_UNSPEC; in addrport_parse() 124 hints.ai_socktype = SOCK_STREAM; in addrport_parse() 127 hints.ai_socktype = SOCK_DGRAM; in addrport_parse() 130 hints.ai_protocol = proto; in addrport_parse() 132 return getaddrinfo(nodep, servp, &hints, p_ai); in addrport_parse()
|
/openbsd/lib/libc/asr/ |
H A D | getaddrinfo_async.c | 75 const struct addrinfo *hints, void *asr) in getaddrinfo_async() argument 80 if (hints == NULL || (hints->ai_flags & AI_NUMERICHOST) == 0) in getaddrinfo_async() 94 if (hints) in getaddrinfo_async() 95 memmove(&as->as.ai.hints, hints, sizeof *hints); in getaddrinfo_async() 97 memset(&as->as.ai.hints, 0, sizeof as->as.ai.hints); in getaddrinfo_async() 98 as->as.ai.hints.ai_family = PF_UNSPEC; in getaddrinfo_async() 99 as->as.ai.hints.ai_flags = AI_ADDRCONFIG; in getaddrinfo_async() 150 ai = &as->as.ai.hints; in getaddrinfo_async_run() 525 return as->as.ai.hints.ai_family; in iter_family() 554 proto = as->as.ai.hints.ai_protocol; in addrinfo_add() [all …]
|
/openbsd/usr.sbin/lpd/ |
H A D | resolver.c | 93 m_add_int(p_resolver, hints ? hints->ai_flags : 0); in resolver_getaddrinfo() 94 m_add_int(p_resolver, hints ? hints->ai_family : 0); in resolver_getaddrinfo() 95 m_add_int(p_resolver, hints ? hints->ai_socktype : 0); in resolver_getaddrinfo() 96 m_add_int(p_resolver, hints ? hints->ai_protocol : 0); in resolver_getaddrinfo() 135 struct addrinfo hints; in resolver_dispatch_request() local 147 memset(&hints, 0 , sizeof(hints)); in resolver_dispatch_request() 148 m_get_int(proc, &hints.ai_flags); in resolver_dispatch_request() 149 m_get_int(proc, &hints.ai_family); in resolver_dispatch_request() 150 m_get_int(proc, &hints.ai_socktype); in resolver_dispatch_request() 151 m_get_int(proc, &hints.ai_protocol); in resolver_dispatch_request() [all …]
|