Searched defs:netaddr (Results 1 - 19 of 19) sorted by relevance

/bind-9.6-ESV-R11/bin/tests/
H A Dbyname_test.c34 #include <isc/netaddr.h>
100 isc_netaddr_t netaddr; local
102 isc_netaddr_fromsockaddr(&netaddr, &address->sockaddr);
103 isc_netaddr_format(&netaddr, text, sizeof(text));
/bind-9.6-ESV-R11/contrib/query-loc-0.4.0/
H A Dloc.c151 struct in_addr netaddr; local
177 netaddr.s_addr = htonl (a & IN_CLASSA_NET);
182 netaddr.s_addr = htonl (a & IN_CLASSB_NET);
187 netaddr.s_addr = htonl (a & IN_CLASSC_NET);
195 return getlocbynet (in_addr_arpa (inet_ntoa (netaddr)), addr, &themask);
199 netaddr.s_addr = addr.s_addr & themask.s_addr;
200 return getlocbynet (in_addr_arpa (inet_ntoa (netaddr)), addr, mask);
/bind-9.6-ESV-R11/lib/isc/
H A Dnetaddr.c29 #include <isc/netaddr.h>
127 isc_netaddr_totext(const isc_netaddr_t *netaddr, isc_buffer_t *target) { argument
135 REQUIRE(netaddr != NULL);
137 switch (netaddr->family) {
139 type = &netaddr->type.in;
142 type = &netaddr->type.in6;
146 alen = strlen(netaddr->type.un);
150 (const unsigned char *)(netaddr->type.un),
157 r = inet_ntop(netaddr->family, type, abuf, sizeof(abuf));
165 if (netaddr
288 isc_netaddr_fromin(isc_netaddr_t *netaddr, const struct in_addr *ina) argument
295 isc_netaddr_fromin6(isc_netaddr_t *netaddr, const struct in6_addr *ina6) argument
302 isc_netaddr_frompath(isc_netaddr_t *netaddr, const char *path) argument
321 isc_netaddr_setzone(isc_netaddr_t *netaddr, isc_uint32_t zone) argument
329 isc_netaddr_getzone(const isc_netaddr_t *netaddr) argument
362 isc_netaddr_any(isc_netaddr_t *netaddr) argument
369 isc_netaddr_any6(isc_netaddr_t *netaddr) argument
[all...]
H A Dsockaddr.c29 #include <isc/netaddr.h>
116 isc_netaddr_t netaddr; local
159 isc_netaddr_fromsockaddr(&netaddr, sockaddr);
160 result = isc_netaddr_totext(&netaddr, target);
192 * The message is the same as in netaddr.c.
443 isc_netaddr_t netaddr; local
447 isc_netaddr_fromsockaddr(&netaddr, sockaddr);
448 return (isc_netaddr_ismulticast(&netaddr));
455 isc_netaddr_t netaddr; local
458 isc_netaddr_fromsockaddr(&netaddr, sockadd
466 isc_netaddr_t netaddr; local
477 isc_netaddr_t netaddr; local
[all...]
/bind-9.6-ESV-R11/bin/named/
H A Dinterfacemgr.c508 isc_netaddr_t *netaddr; local
510 netaddr = &interface->address;
513 prefixlen = (netaddr->family == AF_INET) ? 32 : 128;
515 netaddr, prefixlen, ISC_TRUE);
524 if (result != ISC_R_SUCCESS && netaddr->family == AF_INET6)
539 (netaddr->family == AF_INET) ? "IPv4" : "IPv6",
545 netaddr, prefixlen, ISC_TRUE);
H A Dcontrolconf.c29 #include <isc/netaddr.h>
222 isc_netaddr_t netaddr; local
226 isc_netaddr_fromsockaddr(&netaddr, sockaddr);
228 result = dns_acl_match(&netaddr, NULL, acl,
H A Dstatschannel.c1044 isc_netaddr_t netaddr; local
1050 isc_netaddr_fromsockaddr(&netaddr, fromaddr);
1053 if (dns_acl_match(&netaddr, NULL, listener->acl, &ns_g_server->aclenv,
H A Dclient.c821 isc_netaddr_t netaddr; local
832 isc_netaddr_fromsockaddr(&netaddr, &client->peeraddr);
834 dns_acl_match(&netaddr, NULL,
1390 isc_netaddr_t netaddr; local
1466 isc_netaddr_fromsockaddr(&netaddr, &client->peeraddr);
1491 dns_acl_match(&netaddr, NULL, ns_g_server->blackholeacl,
1682 if (allowed(&netaddr, tsig, view->matchclients) &&
1857 (void) dns_peerlist_peerbyaddr(view->peers, &netaddr, &peer);
2219 isc_netaddr_t netaddr; local
2221 isc_netaddr_fromsockaddr(&netaddr,
2584 isc_netaddr_t netaddr; local
[all...]
H A Dquery.c3397 rdata_tonetaddr(const dns_rdata_t *rdata, isc_netaddr_t *netaddr) { argument
3405 isc_netaddr_fromin(netaddr, &ina);
3410 isc_netaddr_fromin6(netaddr, &in6a);
3424 isc_netaddr_t netaddr; local
3426 if (rdata_tonetaddr(rdata, &netaddr) != ISC_R_SUCCESS)
3428 return (ns_sortlist_addrorder2(&netaddr, arg));
3437 isc_netaddr_t netaddr; local
3439 if (rdata_tonetaddr(rdata, &netaddr) != ISC_R_SUCCESS)
3441 return (ns_sortlist_addrorder1(&netaddr, arg));
3450 isc_netaddr_t netaddr; local
[all...]
H A Dupdate.c22 #include <isc/netaddr.h>
3711 isc_netaddr_t *tcpaddr, netaddr; local
3719 isc_netaddr_fromsockaddr(&netaddr,
3721 tcpaddr = &netaddr;
H A Dserver.c2934 isc_netaddr_t netaddr; local
2941 isc_netaddr_fromin6(&netaddr, &addr->type.sin6.sin6_addr);
2948 &netaddr, 128, ISC_TRUE);
/bind-9.6-ESV-R11/lib/dns/
H A Drequest.c490 isc_netaddr_t netaddr; local
497 isc_netaddr_fromsockaddr(&netaddr, destaddr);
498 if (dns_acl_match(&netaddr, NULL, blackhole,
504 isc_netaddr_format(&netaddr, netaddrstr, sizeof(netaddrstr));
H A Dsdlz.c1314 isc_netaddr_t netaddr; local
1337 isc_netaddr_fromsockaddr(&netaddr, clientaddr);
1338 result = isc_netaddr_totext(&netaddr, &b2);
H A Ddispatch.c1136 isc_netaddr_t netaddr; local
1226 isc_netaddr_fromsockaddr(&netaddr, &ev->address);
1228 dns_acl_match(&netaddr, NULL, disp->mgr->blackhole,
1234 isc_netaddr_format(&netaddr, netaddrstr,
H A Dadb.c34 #include <isc/netaddr.h>
2858 isc_netaddr_t netaddr; local
2861 isc_netaddr_fromsockaddr(&netaddr, &entry->sockaddr);
2862 isc_netaddr_format(&netaddr, addrbuf, sizeof(addrbuf));
H A Dzone.c8957 isc_netaddr_t netaddr; local
9016 isc_netaddr_fromsockaddr(&netaddr, from);
9024 isc_netaddr_fromv4mapped(&na1, &netaddr);
9036 dns_acl_match(&netaddr, NULL, zone->notify_acl,
/bind-9.6-ESV-R11/lib/isccfg/
H A Dnamedconf.c1571 isc_netaddr_t netaddr; local
1578 isc_netaddr_any(&netaddr);
1580 isc_netaddr_any6(&netaddr);
1595 &netaddr));
1622 isc_sockaddr_fromnetaddr(&obj->value.sockaddr, &netaddr, port);
H A Dparser.c31 #include <isc/netaddr.h>
1833 /* netaddr */
1845 isc_netaddr_t netaddr; local
1849 CHECK(cfg_parse_rawaddr(pctx, flags, &netaddr));
1850 isc_sockaddr_fromnetaddr(&obj->value.sockaddr, &netaddr, 0);
1886 "netaddr", parse_netaddr, cfg_print_sockaddr, cfg_doc_netaddr,
1918 isc_netaddr_t netaddr; local
1923 CFG_ADDR_V6OK, &netaddr));
1924 switch (netaddr.family) {
1955 obj->value.netprefix.address = netaddr;
1980 cfg_obj_asnetprefix(const cfg_obj_t *obj, isc_netaddr_t *netaddr, unsigned int *prefixlen) argument
2001 isc_netaddr_t netaddr; local
2036 isc_netaddr_t netaddr; local
[all...]
/bind-9.6-ESV-R11/bin/dig/
H A Ddighost.c77 #include <isc/netaddr.h>
629 isc_netaddr_t netaddr; local
646 isc_netaddr_fromsockaddr(&netaddr, &sockaddrs[i]);
647 isc_netaddr_format(&netaddr, tmp, sizeof(tmp));
3483 isc_netaddr_t netaddr; local
3500 isc_netaddr_fromsockaddr(&netaddr, &sockaddrs[i]);
3501 isc_netaddr_format(&netaddr, tmp, sizeof(tmp));

Completed in 369 milliseconds