ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

nslookup.h
Go to the documentation of this file.
00001 #include <windows.h>
00002 #include <windns.h>
00003 #include <winsock2.h>
00004 #include <tchar.h>
00005 #include <stdio.h>
00006 #include <stdlib.h>
00007 #include <iphlpapi.h>
00008 
00009 #define TypeA       "A"
00010 #define TypeAAAA    "AAAA"
00011 #define TypeBoth    "A+AAAA"
00012 #define TypeAny     "ANY"
00013 #define TypeCNAME   "CNAME"
00014 #define TypeMX      "MX"
00015 #define TypeNS      "NS"
00016 #define TypePTR     "PTR"
00017 #define TypeSOA     "SOA"
00018 #define TypeSRV     "SRV"
00019 
00020 #define TYPE_A      0x01
00021 #define TYPE_NS     0x02
00022 #define TYPE_CNAME  0x05
00023 #define TYPE_SOA    0x06
00024 #define TYPE_WKS    0x0B
00025 #define TYPE_PTR    0x0C
00026 #define TYPE_MX     0x0F
00027 #define TYPE_ANY    0xFF
00028 
00029 #define ClassIN     "IN"
00030 #define ClassAny    "ANY"
00031 
00032 #define CLASS_IN    0x01
00033 #define CLASS_ANY   0xFF
00034 
00035 #define OPCODE_QUERY    0x00
00036 #define OPCODE_IQUERY   0x01
00037 #define OPCODE_STATUS   0x02
00038 
00039 #define OpcodeQuery     "QUERY"
00040 #define OpcodeIQuery    "IQUERY"
00041 #define OpcodeStatus    "STATUS"
00042 #define OpcodeReserved  "RESERVED"
00043 
00044 #define RCODE_NOERROR   0x00
00045 #define RCODE_FORMERR   0x01
00046 #define RCODE_FAILURE   0x02
00047 #define RCODE_NXDOMAIN  0x03
00048 #define RCODE_NOTIMP    0x04
00049 #define RCODE_REFUSED   0x05
00050 
00051 #define RCodeNOERROR    "NOERROR"
00052 #define RCodeFORMERR    "FORMERR"
00053 #define RCodeFAILURE    "FAILURE"
00054 #define RCodeNXDOMAIN   "NXDOMAIN"
00055 #define RCodeNOTIMP     "NOTIMP"
00056 #define RCodeREFUSED    "REFUSED"
00057 #define RCodeReserved   "RESERVED"
00058 
00059 #define DEFAULT_ROOT    "A.ROOT-SERVERS.NET."
00060 #define ARPA_SIG        ".in-addr.arpa"
00061 
00062 typedef struct _STATE
00063 {
00064     BOOL debug;
00065     BOOL defname;
00066     BOOL d2;
00067     BOOL recurse;
00068     BOOL search;
00069     BOOL vc;
00070     BOOL ignoretc;
00071     BOOL MSxfr;
00072     CHAR domain[256];
00073     CHAR srchlist[6][256];
00074     CHAR root[256];
00075     DWORD retry;
00076     DWORD timeout;
00077     DWORD ixfrver;
00078     PCHAR type;
00079     PCHAR Class;
00080     USHORT port;
00081     CHAR DefaultServer[256];
00082     CHAR DefaultServerAddress[16];
00083 } STATE, *PSTATE;
00084 
00085 /* nslookup.c */
00086 
00087 extern STATE    State;
00088 extern HANDLE   ProcessHeap;
00089 
00090 /* utility.c */
00091 
00092 BOOL SendRequest( PCHAR pInBuffer,
00093                   ULONG InBufferLength,
00094                   PCHAR pOutBuffer,
00095                   PULONG pOutBufferLength );
00096 
00097 int     ExtractName( PCHAR pBuffer,
00098                      PCHAR pOutput,
00099                      USHORT Offset,
00100                      UCHAR Limit );
00101 
00102 void    ReverseIP( PCHAR pIP, PCHAR pReturn );
00103 BOOL    IsValidIP( PCHAR pInput );
00104 int     ExtractIP( PCHAR pBuffer, PCHAR pOutput, USHORT Offset );
00105 void    PrintD2( PCHAR pBuffer, DWORD BufferLength );
00106 void    PrintDebug( PCHAR pBuffer, DWORD BufferLength );
00107 PCHAR   OpcodeIDtoOpcodeName( UCHAR Opcode );
00108 PCHAR   RCodeIDtoRCodeName( UCHAR RCode );
00109 PCHAR   TypeIDtoTypeName( USHORT TypeID );
00110 USHORT  TypeNametoTypeID( PCHAR TypeName );
00111 PCHAR   ClassIDtoClassName( USHORT ClassID );
00112 USHORT  ClassNametoClassID( PCHAR ClassName );

Generated on Sun May 27 2012 04:17:15 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.