Package nl.sidnlabs.pcap.decoder
Class DNSDecoder
- java.lang.Object
-
- nl.sidnlabs.pcap.decoder.DNSDecoder
-
public class DNSDecoder extends Object
Decode the dns payload of an UDP or TCP message
-
-
Constructor Summary
Constructors Constructor Description DNSDecoder(boolean allowFail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Packetdecode(Packet packet, byte[] payload, int offset, int length)Decode byte[] into a DNS packetvoidreset()
-
-
-
Method Detail
-
decode
public Packet decode(Packet packet, byte[] payload, int offset, int length)
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()
-
-