Class UDPDecoder

java.lang.Object
nl.sidnlabs.pcap.decoder.UDPDecoder
All Implemented Interfaces:
Decoder

public class UDPDecoder extends Object implements Decoder
Decode UDP packets
  • Constructor Details

    • UDPDecoder

      public UDPDecoder(DNSDecoder dnsDecoder)
  • Method Details

    • reassemble

      public Packet reassemble(Packet packet, byte[] packetData)
      Decode the udp packet, supports reassembly of fragmented packets
      Specified by:
      reassemble in interface Decoder
      Parameters:
      packet - the packet to reassemble
      packetData - bytes to decode
      Returns:
      payload bytes or null if not a valid packet
    • decode

      public byte[] decode(byte[] packetData)
    • printStats

      public void printStats()
      Specified by:
      printStats in interface Decoder
    • reset

      public void reset()
      Specified by:
      reset in interface Decoder