var searchIndex = {}; searchIndex["dns_parser"] = {"doc":"","items":[[3,"Question","dns_parser","A parsed chunk of data in the Query section of the packet",null,null],[12,"qname","","",0,null],[12,"qtype","","",0,null],[12,"qclass","","",0,null],[3,"ResourceRecord","","A single DNS record",null,null],[12,"name","","",1,null],[12,"cls","","",1,null],[12,"ttl","","",1,null],[12,"data","","",1,null],[3,"OptRecord","","RFC 6891 OPT RR",null,null],[12,"udp","","",2,null],[12,"extrcode","","",2,null],[12,"version","","",2,null],[12,"flags","","",2,null],[12,"data","","",2,null],[3,"Packet","","Parsed DNS packet",null,null],[12,"header","","",3,null],[12,"questions","","",3,null],[12,"answers","","",3,null],[12,"nameservers","","",3,null],[12,"additional","","",3,null],[12,"opt","","Optional Pseudo-RR\nWhen present it is sent as an RR in the additional section. In this RR\nthe `class` and `ttl` fields store max udp packet size and flags\nrespectively. To keep `ResourceRecord` clean we store the OPT record\nhere.",3,null],[3,"SoaRecord","","",null,null],[12,"primary_ns","","",4,null],[12,"mailbox","","",4,null],[12,"serial","","",4,null],[12,"refresh","","",4,null],[12,"retry","","",4,null],[12,"expire","","",4,null],[12,"minimum_ttl","","",4,null],[3,"Name","","The DNS name as stored in the original packet",null,null],[3,"Header","","Represents parsed header of the packet",null,null],[12,"id","","",5,null],[12,"query","","",5,null],[12,"opcode","","",5,null],[12,"authoritative","","",5,null],[12,"truncated","","",5,null],[12,"recursion_desired","","",5,null],[12,"recursion_available","","",5,null],[12,"authenticated_data","","",5,null],[12,"checking_disabled","","",5,null],[12,"response_code","","",5,null],[12,"questions","","",5,null],[12,"answers","","",5,null],[12,"nameservers","","",5,null],[12,"additional","","",5,null],[3,"Builder","","Allows to build a DNS packet",null,null],[4,"Type","","The TYPE value according to RFC 1035",null,null],[13,"A","","a host addresss",6,null],[13,"NS","","an authoritative name server",6,null],[13,"MF","","a mail forwarder (Obsolete - use MX)",6,null],[13,"CNAME","","the canonical name for an alias",6,null],[13,"SOA","","marks the start of a zone of authority",6,null],[13,"MB","","a mailbox domain name (EXPERIMENTAL)",6,null],[13,"MG","","a mail group member (EXPERIMENTAL)",6,null],[13,"MR","","a mail rename domain name (EXPERIMENTAL)",6,null],[13,"NULL","","a null RR (EXPERIMENTAL)",6,null],[13,"WKS","","a well known service description",6,null],[13,"PTR","","a domain name pointer",6,null],[13,"HINFO","","host information",6,null],[13,"MINFO","","mailbox or mail list information",6,null],[13,"MX","","mail exchange",6,null],[13,"TXT","","text strings",6,null],[13,"AAAA","","IPv6 host address (RFC 2782)",6,null],[13,"SRV","","service record (RFC 2782)",6,null],[13,"OPT","","EDNS0 options (RFC 6891)",6,null],[4,"QueryType","","The QTYPE value according to RFC 1035",null,null],[13,"A","","a host addresss",7,null],[13,"NS","","an authoritative name server",7,null],[13,"MF","","a mail forwarder (Obsolete - use MX)",7,null],[13,"CNAME","","the canonical name for an alias",7,null],[13,"SOA","","marks the start of a zone of authority",7,null],[13,"MB","","a mailbox domain name (EXPERIMENTAL)",7,null],[13,"MG","","a mail group member (EXPERIMENTAL)",7,null],[13,"MR","","a mail rename domain name (EXPERIMENTAL)",7,null],[13,"NULL","","a null RR (EXPERIMENTAL)",7,null],[13,"WKS","","a well known service description",7,null],[13,"PTR","","a domain name pointer",7,null],[13,"HINFO","","host information",7,null],[13,"MINFO","","mailbox or mail list information",7,null],[13,"MX","","mail exchange",7,null],[13,"TXT","","text strings",7,null],[13,"AAAA","","IPv6 host address (RFC 2782)",7,null],[13,"SRV","","service record (RFC 2782)",7,null],[13,"AXFR","","A request for a transfer of an entire zone",7,null],[13,"MAILB","","A request for mailbox-related records (MB, MG or MR)",7,null],[13,"MAILA","","A request for mail agent RRs (Obsolete - see MX)",7,null],[13,"All","","A request for all records",7,null],[4,"Class","","The CLASS value according to RFC 1035",null,null],[13,"IN","","the Internet",8,null],[13,"CS","","the CSNET class (Obsolete - used only for examples in some obsolete\nRFCs)",8,null],[13,"CH","","the CHAOS class",8,null],[13,"HS","","Hesiod [Dyer 87]",8,null],[4,"QueryClass","","The QCLASS value according to RFC 1035",null,null],[13,"IN","","the Internet",9,null],[13,"CS","","the CSNET class (Obsolete - used only for examples in some obsolete\nRFCs)",9,null],[13,"CH","","the CHAOS class",9,null],[13,"HS","","Hesiod [Dyer 87]",9,null],[13,"Any","","Any class",9,null],[4,"ResponseCode","","The RCODE value according to RFC 1035",null,null],[13,"NoError","","",10,null],[13,"FormatError","","",10,null],[13,"ServerFailure","","",10,null],[13,"NameError","","",10,null],[13,"NotImplemented","","",10,null],[13,"Refused","","",10,null],[13,"Reserved","","",10,null],[4,"Opcode","","The OPCODE value according to RFC 1035",null,null],[13,"StandardQuery","","",11,null],[13,"InverseQuery","","",11,null],[13,"ServerStatusRequest","","",11,null],[13,"Reserved","","",11,null],[4,"Error","","Error parsing DNS packet",null,null],[13,"BadPointer","","",12,null],[13,"HeaderTooShort","","",12,null],[13,"UnexpectedEOF","","",12,null],[13,"WrongRdataLength","","",12,null],[13,"ReservedBitsAreNonZero","","",12,null],[13,"UnknownLabelFormat","","",12,null],[13,"InvalidQueryType","","",12,null],[13,"InvalidQueryClass","","",12,null],[13,"InvalidType","","",12,null],[13,"InvalidClass","","",12,null],[13,"LabelIsNotAscii","","",12,null],[13,"WrongState","","",12,null],[13,"AdditionalOPT","","",12,null],[4,"RRData","","The enumeration that represents known types of DNS resource records data",null,null],[13,"CNAME","","",13,null],[13,"NS","","",13,null],[13,"A","","",13,null],[13,"AAAA","","",13,null],[13,"SRV","","",13,null],[12,"priority","dns_parser::RRData","",13,null],[12,"weight","","",13,null],[12,"port","","",13,null],[12,"target","","",13,null],[13,"SOA","dns_parser","",13,null],[13,"PTR","","",13,null],[13,"MX","","",13,null],[12,"preference","dns_parser::RRData","",13,null],[12,"exchange","","",13,null],[13,"Unknown","dns_parser","",13,null],[11,"clone","","",6,null],[11,"eq","","",6,null],[11,"fmt","","",6,null],[11,"clone","","",7,null],[11,"eq","","",7,null],[11,"fmt","","",7,null],[11,"clone","","",8,null],[11,"eq","","",8,null],[11,"fmt","","",8,null],[11,"clone","","",9,null],[11,"eq","","",9,null],[11,"fmt","","",9,null],[11,"clone","","",11,null],[11,"eq","","",11,null],[11,"ne","","",11,null],[11,"fmt","","",11,null],[11,"clone","","",10,null],[11,"eq","","",10,null],[11,"ne","","",10,null],[11,"fmt","","",10,null],[11,"from","","",11,{"inputs":[{"name":"u16"}],"output":{"name":"opcode"}}],[11,"into","","",11,null],[11,"from","","",10,{"inputs":[{"name":"u8"}],"output":{"name":"responsecode"}}],[11,"into","","",10,null],[11,"parse","","",7,{"inputs":[{"name":"u16"}],"output":{"name":"result"}}],[11,"parse","","",9,{"inputs":[{"name":"u16"}],"output":{"name":"result"}}],[11,"parse","","",6,{"inputs":[{"name":"u16"}],"output":{"name":"result"}}],[11,"parse","","",8,{"inputs":[{"name":"u16"}],"output":{"name":"result"}}],[11,"fmt","","",3,null],[11,"fmt","","",0,null],[11,"fmt","","",1,null],[11,"fmt","","",2,null],[11,"fmt","","",4,null],[11,"clone","","",14,null],[11,"fmt","","",14,null],[11,"scan","","",14,null],[11,"byte_len","","",14,null],[11,"fmt","","",14,null],[11,"parse","","",3,null],[11,"fmt","","",12,null],[11,"fmt","","",12,null],[11,"description","","",12,null],[11,"cause","","",12,null],[11,"clone","","",5,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"parse","","",5,null],[11,"write","","Write a header to a buffer slice",5,null],[11,"set_truncated","","",5,null],[11,"size","","",5,{"inputs":[],"output":{"name":"usize"}}],[11,"fmt","","",13,null],[11,"parse","","",13,null],[11,"new_query","","Creates a new query",15,{"inputs":[{"name":"u16"},{"name":"bool"}],"output":{"name":"builder"}}],[11,"add_question","","Adds a question to the packet",15,null],[11,"build","","Returns the final packet",15,null]],"paths":[[3,"Question"],[3,"ResourceRecord"],[3,"OptRecord"],[3,"Packet"],[3,"SoaRecord"],[3,"Header"],[4,"Type"],[4,"QueryType"],[4,"Class"],[4,"QueryClass"],[4,"ResponseCode"],[4,"Opcode"],[4,"Error"],[4,"RRData"],[3,"Name"],[3,"Builder"]]}; initSearch(searchIndex);