Home
last modified time | relevance | path

Searched refs:namebuff (Results 1 – 15 of 15) sorted by relevance

/external/dnsmasq/src/
Dtftp.c230 strcpy(daemon->namebuff, "/"); in tftp_request()
234 daemon->namebuff[0] = 0; in tftp_request()
235 strncat(daemon->namebuff, daemon->tftp_prefix, (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request()
237 strncat(daemon->namebuff, "/", (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request()
241 size_t oldlen = strlen(daemon->namebuff); in tftp_request()
244 strncat(daemon->namebuff, inet_ntoa(peer.sin_addr), (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request()
245 strncat(daemon->namebuff, "/", (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request()
248 if (stat(daemon->namebuff, &statbuf) == -1 || !S_ISDIR(statbuf.st_mode)) in tftp_request()
249 daemon->namebuff[oldlen] = 0; in tftp_request()
255 if (strstr(filename, daemon->namebuff) == filename) in tftp_request()
[all …]
Dforward.c211 unsigned int crc = questions_crc(header, plen, daemon->namebuff); in forward_query()
213 unsigned short gotname = extract_request(header, plen, daemon->namebuff, NULL); in forward_query()
237 flags = search_servers(now, &addrp, gotname, daemon->namebuff, &type, &domain); in forward_query()
349 strcpy(daemon->namebuff, "query"); in forward_query()
351 log_query(F_SERVER | F_IPV4 | F_FORWARD, daemon->namebuff, in forward_query()
355 log_query(F_SERVER | F_IPV6 | F_FORWARD, daemon->namebuff, in forward_query()
420 prettyprint_addr(&server->addr, daemon->namebuff); in process_reply()
421 my_syslog(LOG_WARNING, _("nameserver %s refused to do a recursive query"), daemon->namebuff); in process_reply()
427 check_for_bogus_wildcard(header, n, daemon->namebuff, daemon->bogus_addr, now)) in process_reply()
436 extract_request(header, n, daemon->namebuff, NULL) && in process_reply()
[all …]
Dnetwork.c475 prettyprint_addr(&iface->addr, daemon->namebuff); in create_bound_listener()
476 die(_("failed to bind listening socket for %s: %s"), daemon->namebuff, EC_BADNET); in create_bound_listener()
533 int port = prettyprint_addr(&listener->iface->addr, daemon->namebuff); in delete_listener()
534 my_syslog(LOG_INFO, _("Closing listener [%s]:%d"), daemon->namebuff, port); in delete_listener()
658 prettyprint_addr(&iface->addr, daemon->namebuff); in create_bound_listeners()
660 daemon->namebuff, EC_BADNET); in create_bound_listeners()
869 prettyprint_addr(&srv->addr, daemon->namebuff); in pre_allocate_sfds()
872 strcat(daemon->namebuff, " "); in pre_allocate_sfds()
873 strcat(daemon->namebuff, srv->interface); in pre_allocate_sfds()
876 daemon->namebuff, EC_BADNET); in pre_allocate_sfds()
[all …]
Drfc2131.c350 strcpy(daemon->namebuff, inet_ntoa(context_tmp->start)); in dhcp_reply()
353 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->netmask)); in dhcp_reply()
356 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->end)); in dhcp_reply()
695 if (sanitise(option_find(mess, sz, OPTION_VENDOR_ID, 1), daemon->namebuff)) in dhcp_reply()
696 my_syslog(MS_DHCP | LOG_INFO, _("%u Vendor class: %s"), ntohl(mess->xid), daemon->namebuff); in dhcp_reply()
697 if (sanitise(option_find(mess, sz, OPTION_USER_CLASS, 1), daemon->namebuff)) in dhcp_reply()
698 my_syslog(MS_DHCP | LOG_INFO, _("%u User class: %s"), ntohl(mess->xid), daemon->namebuff); in dhcp_reply()
907 addrs, print_mac(daemon->namebuff, mac, len)); in dhcp_reply()
1095 print_mac(daemon->namebuff, ltmp->hwaddr, ltmp->hwaddr_len), in dhcp_reply()
1395 print_mac(daemon->namebuff, ext_mac, mac_len); in log_packet()
[all …]
Dcache.c756 char *token = daemon->namebuff, *domain_suffix = NULL; in read_hostsfile()
1050 strcpy(daemon->namebuff, inet_ntoa(crec->addr.addr.addr.addr4)); in cache_add_dhcp_entry()
1055 record_source(crec->uid), daemon->namebuff); in cache_add_dhcp_entry()
1167 char *a, *p = daemon->namebuff; in dump_cache()
1208 my_syslog(LOG_DEBUG, daemon->namebuff); in dump_cache()
Dlease.c76 &ei, daemon->dhcp_buff2, daemon->namebuff, in lease_init()
84 addr.s_addr = inet_addr(daemon->namebuff); in lease_init()
Ddnsmasq.h651 char *namebuff; /* MAXDNAME size buffer */ member
718 int extract_addresses(HEADER *header, size_t qlen, char *namebuff, time_t now);
Ddbus.c398 char *action_str, *addr, *mac = daemon->namebuff; in emit_dbus_signal()
Dhelper.c114 unsigned char *buf = (unsigned char *)daemon->namebuff; in create_helper()
Ddnsmasq.c187 prettyprint_addr(&if_tmp->addr, daemon->namebuff); in main()
188 die(_("no interface with address %s"), daemon->namebuff, EC_BADNET); in main()
Ddhcp.c722 char *buff = daemon->namebuff; in dhcp_read_ethers()
Doption.c2519 char *p, *arg, *start, *buff = daemon->namebuff; in one_file()
2773 daemon->namebuff = buff; in read_opts()
Drfc1035.c1133 char *name = daemon->namebuff; in answer_request()
/external/curl/lib/
Dcurl_addrinfo.c361 struct namebuff { struct
395 struct namebuff *buf; in Curl_ip2addr()
402 buf = malloc(sizeof(struct namebuff)); in Curl_ip2addr()
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch472 …my_syslog(LOG_INFO, _("Available DHCP range: %s -- %s"), daemon->namebuff, inet_ntoa(context_tmp->…