ReactOS 0.4.16-dev-41-ge8c7597
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <search.h>
#include <assert.h>
#include <ctype.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include "config.h"
#include "adns.h"
#include "dlist.h"
#include "tvarith.h"
#include "client.h"
Go to the source code of this file.
Classes | |
struct | outqueuenode |
struct | treething |
Functions | |
static int | nonblock (int fd, int isnonblock) |
void | quitnow (int exitstatus) |
static void | sysfail (const char *what) NONRETURNING |
static void * | xmalloc (size_t sz) |
static void | outputerr (void) |
static void | usage (void) |
static void | usageerr (const char *why) NONRETURNING |
static void | adnsfail (const char *what, int e) NONRETURNING |
static void | settimeout (const char *arg) |
static void | parseargs (const char *const *argv) |
static void | queueoutchar (int c) |
static void | queueoutstr (const char *str, int len) |
static void | writestdout (struct outqueuenode *entry) |
static void | replacetextwithname (struct outqueuenode *entry) |
static void | checkadnsqueries (void) |
static void | restartbuf (void) |
static int | comparer (const void *a, const void *b) |
static void | procaddr (void) |
static void | startaddr (void) |
static void | readstdin (void) |
static void | startup (void) |
int | main (int argc, const char *const *argv) |
Variables | |
static int | bracket |
static int | forever |
static int | address |
static unsigned long | timeout = 1000 |
static adns_rrtype | rrt = adns_r_ptr |
static adns_initflags | initflags = 0 |
static const char * | config_text |
static int | outblocked |
static int | inputeof |
struct { | |
struct outqueuenode * head | |
struct outqueuenode * tail | |
} | outqueue |
static int | peroutqueuenode |
static int | outqueuelen |
static struct sockaddr_in | sa |
static adns_state | ads |
static char | addrtextbuf [14] |
static int | cbyte |
static int | inbyte |
static int | inbuf |
static unsigned char | bytes [4] |
static struct timeval | printbefore |
static struct treething * | newthing |
static void * | treeroot |
Definition at line 141 of file adnsresfilter.c.
Referenced by procaddr(), and startup().
Definition at line 281 of file adnsresfilter.c.
Referenced by main().
Definition at line 304 of file adnsresfilter.c.
Referenced by find(), find1(), and procaddr().
Definition at line 411 of file adnsresfilter.c.
Definition at line 86 of file adnsresfilter.c.
Definition at line 152 of file adnsresfilter.c.
Referenced by main().
Definition at line 308 of file adnsresfilter.c.
Referenced by readstdin().
Definition at line 216 of file adnsresfilter.c.
Referenced by queueoutstr(), and readstdin().
Definition at line 96 of file adnsresfilter.c.
Referenced by adnsfail(), parseargs(), sysfail(), and usageerr().
Definition at line 350 of file adnsresfilter.c.
Referenced by main().
|
static |
Definition at line 345 of file adnsresfilter.c.
Referenced by add_checksum_entry(), readstdin(), and startup().
Definition at line 392 of file adnsresfilter.c.
Referenced by _tWinMain(), ConfigFileHandler_startElement(), crash_and_debug(), crash_and_winedbg(), create_io_inherit_block(), create_server_process(), do_parent(), do_register_dll(), main(), run_child(), run_client(), run_process(), SHELL_ExecuteW(), START_TEST(), test___getmainargs_parent(), test_comctl32_classes(), test_CommandLine(), test_Console(), test_CreateProcessWithDesktop(), test_debug_heap(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_DetachStdHandles(), test_Directory(), test_Environment(), test_ExitCode(), test_file_inherit(), test_invalid_stdin(), test_LresultFromObject(), test_NonExistentPath(), test_NtSuspendProcess(), test_process_security(), test_Startup(), test_StartupNoConsole(), test_stdout_handle(), test_SuspendFlag(), test_token_security_descriptor(), test_Toolhelp(), test_WaitForInputIdle(), test_window_from_point(), and test_winproc_handles().
Definition at line 103 of file adnsresfilter.c.
Referenced by main(), outputerr(), procaddr(), readstdin(), startup(), usage(), writestdout(), and xmalloc().
Definition at line 117 of file adnsresfilter.c.
Referenced by parseargs(), and usageerr().
Definition at line 134 of file adnsresfilter.c.
Referenced by parseargs(), and settimeout().
|
static |
Definition at line 238 of file adnsresfilter.c.
Referenced by main().
Definition at line 108 of file adnsresfilter.c.
Referenced by procaddr(), queueoutchar(), and replacetextwithname().
Definition at line 59 of file adnsresfilter.c.
|
static |
Definition at line 72 of file adnsresfilter.c.
Referenced by procaddr(), readstdin(), and restartbuf().
|
static |
Definition at line 70 of file adnsresfilter.c.
Referenced by checkadnsqueries(), main(), procaddr(), and startup().
|
static |
Definition at line 59 of file adnsresfilter.c.
Referenced by XMLStorage::XPathElement::parse(), parseargs(), readstdin(), replacetextwithname(), and startup().
Definition at line 74 of file adnsresfilter.c.
Referenced by _bdf_readstream(), _enumerateProvidersW(), _setmbcp_l(), advance_stream(), audio_membuffer::alloc_bytes(), audio_membuffer::alloc_mem_(), audio_membuffer::audio_membuffer(), audio_producer::backward(), bytes_to_ms(), bytes_to_samples(), cert_find_alt_name_entry(), cert_get_name_from_rdn_attr(), cert_name_to_str_with_indent(), CertGetNameStringW(), CertNameToStrA(), cff_index_get_name(), check_native_ie(), check_position(), check_storage_contents(), checksum(), cicCreateDitherBrush(), create_test_file(), customWordBreakProc(), d3dx9_texture_shader_SetValue(), d3dx_effect_GetValue(), d3dx_effect_SetValue(), d3dx_include_from_file_open(), d3dxinclude_open(), DECLARE_INTERFACE(), DECLARE_INTERFACE_(), do_process_key(), EMFDC_GdiComment(), EMFDRV_GdiComment(), encodeBase64(), encodeBase64A(), encodeBase64W(), exec_tests(), fdi_decomp(), feed_back_bytes(), format_hash(), format_size(), audio_producer::forward(), free_parameter_object_data(), gl_alloc_alpha_buffers(), gl_unpack_image(), gl_unpack_pixels(), ID3DXConstantTableImpl_SetValue(), ID3DXEffectCompilerImpl_GetValue(), ID3DXEffectCompilerImpl_SetValue(), IDirectPlay4AImpl_GetMessageQueue(), IDirectPlay4Impl_GetMessageQueue(), local_server_thread(), main(), mpg123_decode_frame(), mpg123_framebyframe_decode(), MSRLE32_CompressRLE4Line(), MSVCRT_calloc(), param_get_data_and_dirtify(), ParseStringSecurityDescriptorToSecurityDescriptor(), PCF_Glyph_Load(), procaddr(), propset_private_tests(), ps_hints_t2counter(), ps_hints_t2mask(), ps_parser_to_bytes(), ptransfer(), audio_membuffer::read(), read_backing_store(), read_clipformat(), read_raw_int(), read_table_int(), readstdin(), record_parameter(), TCPSocketObject::recv(), recvrequest(), audio_membuffer::resize_bytes(), audio_format::samples_in_bytes(), TCPSocketObject::send(), sendrequest(), serial_get_event(), set_value(), setByteArray(), SetupCreateDiskSpaceListW(), startaddr(), stream_back_bytes(), subtract_bytes(), test_async_read(), test_file_access(), test_file_security(), test_FlushFileBuffers(), test_GetDIBits(), test_LoadIconWithScaleDown(), test_no_stop(), test_nodeTypedValue(), test_read_write(), test_ReadConsole(), test_registrar(), test_select_object(), test_service(), test_WaitCommEvent(), test_waittxempty(), testD3DInclude_open(), testD3DXInclude_open(), TestMessageHandler(), testNotifyAddrChange(), thunk_PSecPkgInfoWToA(), token_to_str(), TV1_GetDependants(), unintr_read(), unintr_write(), UserInitHandleTable(), virtio_cread_many(), virtio_cwrite_many(), W8_16(), write_backing_store(), ZSTD_cwksp_reserve_aligned(), ZSTD_cwksp_reserve_buffer(), ZSTD_cwksp_reserve_internal(), ZSTD_cwksp_reserve_object(), and ZSTD_cwksp_reserve_table().
|
static |
Definition at line 73 of file adnsresfilter.c.
Referenced by adns__diag_domain(), adns__findrr_anychk(), adns__procdgram(), pa_addr(), pa_dom_raw(), pa_hinfo(), pa_host_raw(), pa_hostaddr(), pa_inaddr(), pa_mx(), pa_mx_raw(), pa_ptr(), pa_rp(), pa_soa(), pa_txt(), pap_hostaddr(), pap_qstring(), procaddr(), readstdin(), startaddr(), and startup().
Definition at line 63 of file adnsresfilter.c.
Referenced by parseargs(), and startup().
|
static |
Definition at line 59 of file adnsresfilter.c.
Referenced by main(), and parseargs().
struct outqueuenode* head |
Definition at line 66 of file adnsresfilter.c.
Referenced by __add_wait_queue(), __add_wait_queue_tail(), __list_splice(), acpi_extract_package(), add_keyitem_pair(), add_undo(), AtaCommand(), Subdivider::check_s(), create_automatic_entry(), CRYPT_ExportKeyTrans(), deflateSetHeader(), dictNewDict(), DSoundAdviseThread(), EnumTfDocumentMgr_Constructor(), Ext2QueryUnusedBH(), free_resource_directory(), FT_Raccess_Get_HeaderInfo(), generic_head_shift(), get_keyitem_pair(), get_static_entry(), GetExpandedNameA(), FxVerifierLock::GetThreadTableEntry(), gl_PushAttrib(), gl_PushClientAttrib(), GPOS_get_value_record_offsets(), guess_freeformat_framesize(), head_check(), HTMLTable_createTHead(), HTTP_GetHeader(), inflateGetHeader(), IPropData_fnRelease(), l_to_a(), list_add(), list_add_head(), list_add_tail(), list_empty(), list_empty_careful(), list_init(), list_move(), list_move_tail(), list_search(), list_splice(), list_splice_init(), FxVerifierLock::Lock(), LZInit(), ME_CommitCoalescingUndo(), ME_CommitUndo(), ME_ContinueCoalescingTransaction(), ME_Redo(), ME_Undo(), monoPolyPart(), pmap_getmaps(), proclog(), read_header(), FxVerifierLock::ReleaseOrReplaceThreadTableEntry(), remove_marked_para(), rpcb_getmaps(), RtlSetEnvironmentVariable(), seamless_get_token(), send_file(), set_head_text(), set_print_template(), sfnt_load_face(), FxIoTarget::Start(), FxUsbDevice::Start(), FxIoTarget::Stop(), FxUsbDevice::Stop(), test_BasicCases(), FxSystemThread::Thread(), USBFlopFormatTracks(), virtqueue_add_buf_packed(), wined3d_cs_queue_require_space(), and xprintf().
|
static |
Definition at line 73 of file adnsresfilter.c.
Referenced by convert_to_unicode(), dct36(), delegation_return(), ext2_read_block(), ext2_write_block(), fdi_decomp(), FTPPutOneF(), iconv(), joliet_strlen(), lzo_compress(), lzo_decompress(), LZXfdi_decomp(), main(), nfs41_send_compound(), NONEfdi_decomp(), procaddr(), QTMfdi_decomp(), query_ranges(), readstdin(), restartbuf(), rpc_broadcast_exp(), startup(), test_SystemFunction004(), thread_main(), TIFFReadFromUserBuffer(), win_iconv(), ZIPfdi_decomp(), zlib_compress(), zlib_decompress(), zstd_compress(), and zstd_decompress().
|
static |
Definition at line 73 of file adnsresfilter.c.
Referenced by readstdin(), startaddr(), and startup().
|
static |
Definition at line 62 of file adnsresfilter.c.
Referenced by ensure_adns_init(), main(), parseargs(), proclog(), and startup().
|
static |
Definition at line 65 of file adnsresfilter.c.
Referenced by main(), and readstdin().
Definition at line 83 of file adnsresfilter.c.
Referenced by procaddr().
|
static |
Definition at line 65 of file adnsresfilter.c.
Referenced by main(), and writestdout().
struct { ... } outqueue |
Referenced by main(), procaddr(), queueoutchar(), and writestdout().
|
static |
Definition at line 67 of file adnsresfilter.c.
Referenced by main(), procaddr(), queueoutchar(), and writestdout().
|
static |
Definition at line 67 of file adnsresfilter.c.
Referenced by queueoutchar().
Definition at line 75 of file adnsresfilter.c.
Referenced by main(), and procaddr().
|
static |
Definition at line 61 of file adnsresfilter.c.
Referenced by parseargs(), and procaddr().
|
static |
Definition at line 69 of file adnsresfilter.c.
Referenced by __rpc_get_local_uid(), _pipe(), _tpopen(), _wsopen_s(), AddrStrToAddr(), adns__sigpipe_protect(), Subdivider::bbox(), bindresvport_sa(), check_safearray(), ClOleCommandTarget_Exec(), ConnectToReactOSWebsite(), create_safearray_iter(), create_vbarray(), CreateClientProcess(), CreateHiddenConsoleProcess(), CreateInheritableDesktop(), CreateInheritableWinsta(), CreateSocket(), dictionary_Items(), dictionary_Keys(), doc_complex_write(), doc_write(), find_prop(), FT_MulFix(), get_dnshostname(), get_properties(), get_safearray_size(), getnameinfo(), Global_Array(), Global_UBound(), handle_navigation_error(), TMapLoader::LookForPart(), main(), make_listening_socket(), make_safearray(), mp_add(), mp_sub(), of_ptr(), of_reverse(), OleCommandTarget_Exec(), open_http(), piaddr(), PrepareForRedirect(), procaddr(), read_reg_output_(), request_send(), resolve_hostname(), rpcrt4_protseq_ncacn_ip_tcp_open_endpoint(), run_cmd(), sc_cb_open(), ScriptApplyLogicalWidth(), ScriptBreak(), ScriptGetLogicalWidths(), server_thread(), sparse_array_add(), sparse_array_find(), sparse_array_init(), sparse_array_length(), sparse_array_lookup(), start_server(), START_TEST(), startup(), test_AddMandatoryAce(), test_Console(), test_copy(), test_CreateDirectoryA(), test_CreateFileW(), test_default_dacl_owner_sid(), test_event(), test_file_inherit(), test_GetProp(), test_invalid_stdin(), test_LockUnlock(), test_maximum_allowed(), test_PropVariantToBuffer(), test_safearray_layout(), test_SafeArrayAllocDestroyDescriptor(), test_SafeArrayChangeTypeEx(), test_SafeArrayClear(), test_SafeArrayCopy(), test_SafeArrayCopyData(), test_SafeArrayCreateEx(), test_SafeArrayCreateLockDestroy(), test_SafeArrayDestroyData(), test_SafeArrayGetPutElement(), test_SafeArrayGetPutElement_BSTR(), test_SafeArrayGetPutElement_IUnknown(), test_SafeArrayGetPutElement_VARIANT(), test_SafeArrayRedim_IUnknown(), test_saxreader(), test_ScriptGetLogicalWidths(), test_ScriptXtoX(), test_stdout_handle(), test_token_security_descriptor(), test_VectorCreateLockDestroy(), to_bstr_array(), to_byte_array(), to_i4_array(), WaitForConnect(), winhttp_request_get_ResponseBody(), word_break(), WshShell3_RegRead(), and WspiapiGetNameInfo().
struct outqueuenode * tail | ( | void | ) |
Definition at line 66 of file adnsresfilter.c.
Referenced by __ext4_ext_check(), acpi_extract_package(), add_interface_typeinfo(), add_structure_typeinfo(), Subdivider::check_s(), ext4_extent_block_csum_set(), init_sltg_tail(), l_to_a(), make_list(), proclog(), RtlSetEnvironmentVariable(), test_BasicCases(), translate_line(), wined3d_cs_queue_require_space(), and wined3d_cs_run().
Definition at line 60 of file adnsresfilter.c.
|
static |
Definition at line 84 of file adnsresfilter.c.
Referenced by procaddr().