Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/openbsd/regress/lib/libc/asr/bin/
H A Dgetaddrinfo.c45 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/unbound/iterator/
H A Diter_hints.c58 if(!hints) in hints_create()
60 return hints; in hints_create()
84 if(!hints) in hints_delete()
86 hints_del_tree(hints); in hints_delete()
87 free(hints); in hints_delete()
431 if(!read_root_hints(hints, f)) in read_root_hints_list()
441 hints_del_tree(hints); in hints_apply_cfg()
442 name_tree_init(&hints->tree); in hints_apply_cfg()
449 if(!read_stubs(hints, cfg)) in hints_apply_cfg()
526 if(!hints) return 0; in hints_get_mem()
[all …]
H A Diter_hints.h87 void hints_delete(struct iter_hints* hints);
95 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg);
103 struct delegpt* hints_lookup_root(struct iter_hints* hints, uint16_t qclass);
115 int hints_next_root(struct iter_hints* hints, uint16_t* qclass);
129 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints,
137 size_t hints_get_mem(struct iter_hints* hints);
149 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp,
159 void hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm);
/openbsd/sbin/unwind/libunbound/iterator/
H A Diter_hints.c58 if(!hints) in hints_create()
60 return hints; in hints_create()
84 if(!hints) in hints_delete()
86 hints_del_tree(hints); in hints_delete()
87 free(hints); in hints_delete()
431 if(!read_root_hints(hints, f)) in read_root_hints_list()
441 hints_del_tree(hints); in hints_apply_cfg()
442 name_tree_init(&hints->tree); in hints_apply_cfg()
449 if(!read_stubs(hints, cfg)) in hints_apply_cfg()
526 if(!hints) return 0; in hints_get_mem()
[all …]
H A Diter_hints.h87 void hints_delete(struct iter_hints* hints);
95 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg);
103 struct delegpt* hints_lookup_root(struct iter_hints* hints, uint16_t qclass);
115 int hints_next_root(struct iter_hints* hints, uint16_t* qclass);
129 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints,
137 size_t hints_get_mem(struct iter_hints* hints);
149 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp,
159 void hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm);
/openbsd/usr.sbin/lpr/lpd/
H A Dallowedhost.c135 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 DHints_test.pm11 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
H A DHints_pod_examples.pm15 use autodie::hints;
54 autodie::hints->set_hints_for(
66 autodie::hints->set_hints_for(
77 autodie::hints->set_hints_for(
88 autodie::hints->set_hints_for(
99 autodie::hints->set_hints_for(
/openbsd/regress/sys/netinet/ipsec/
H A Dnonxt-sendrecv.c43 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 Dnonxt-reflect.c43 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 Dconfig.c61 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 Dhints.pm1 package autodie::hints;
450 my ($class, $hints, $sub) = @_;
452 if ( exists $hints->{$sub}->{fail} ) {
454 if ( exists $hints->{$sub}->{scalar} or
455 exists $hints->{$sub}->{list}
465 $hints->{$sub}->{scalar} =
466 $hints->{$sub}->{list} = delete $hints->{$sub}->{fail};
475 if ( not exists $hints->{$sub}->{$hint} ) {
515 my ($class, $sub, $hints) = @_;
526 warn "autodie::hints: Setting $sub to hints: $hints\n";
[all …]
/openbsd/regress/sys/kern/sosplice/perf/
H A Drelay.c133 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 Druserok.c60 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 Dutil.c36 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 Dhints.t4 use autodie::hints;
38 my $hints = "autodie::hints";
42 is( $hints->sub_fullname(\&copy), '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(\&copy)->{scalar}->(0) ,
57 ok( $hints->get_hints_for(\&copy)->{list}->(0) ,
/openbsd/gnu/usr.bin/perl/cpan/IO-Socket-IP/lib/IO/Socket/
H A DIP.pm424 my %hints;
438 $hints{flags} = $AI_ADDRCONFIG;
442 $hints{family} = $family;
446 $hints{socktype} = $type;
458 $hints{protocol} = $proto;
463 if( !defined $hints{socktype} and !defined $hints{protocol} ) {
470 if( !defined $hints{socktype} and defined $hints{protocol} ) {
471 $hints{socktype} = SOCK_STREAM if $hints{protocol} == IPPROTO_TCP;
472 $hints{socktype} = SOCK_DGRAM if $hints{protocol} == IPPROTO_UDP;
494 my %localhints = %hints;
[all …]
/openbsd/regress/lib/libpthread/getaddrinfo/
H A Dgetaddrinfo.c67 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 D20020615-1.c23 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 Dsrcaddr.c36 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/usr.bin/whois/
H A Dwhois.c173 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 Dnet_utils.c94 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 Dgetaddrinfo_async.c75 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/gnu/usr.bin/perl/cpan/autodie/lib/
H A DFatal.pm918 require autodie::hints;
920 $hints = autodie::hints->get_hints_for( $sref );
1104 if ( $hints and ( ref($hints->{list} ) || "" ) eq 'CODE' ) {
1115 elsif ( PERL510 and $hints ) {
1120 elsif ( $hints ) {
1149 if ( $hints and ( ref($hints->{scalar} ) || "" ) eq 'CODE' ) {
1161 elsif (PERL510 and $hints) {
1169 elsif ( $hints ) {
1293 require autodie::hints;
1295 $hints = autodie::hints->get_hints_for( $sref );
[all …]
/openbsd/usr.sbin/lpd/
H A Dresolver.c93 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 …]

12345678910>>...16