Package nl.sidnlabs.pcap.decoder
Class DNSDecoder
java.lang.Object
nl.sidnlabs.pcap.decoder.DNSDecoder
Decode the dns payload of an UDP or TCP message
-
Constructor Summary
ConstructorsConstructorDescriptionDNSDecoder(boolean allowFail) DNSDecoder(boolean allowFail, boolean partial) -
Method Summary
-
Constructor Details
-
DNSDecoder
public DNSDecoder(boolean allowFail) -
DNSDecoder
public DNSDecoder(boolean allowFail, boolean partial)
-
-
Method Details
-
decode
Decode byte[] into a DNS packet- Parameters:
packet- the packet that contains all decoded datapayload- byte[] with raw data to decodeoffset- the offset in the payload to start decodinglength- the number of bytes to decode- Returns:
-
reset
public void reset() -
printStats
public void printStats()
-