Class IcmpPaket

All Implemented Interfaces:
I18n, Serializable, Cloneable

public class IcmpPaket extends IpPaket
Diese Klasse umfasst die Attribute eines ICMP-Pakets
See Also:
  • Field Details

  • Constructor Details

    • IcmpPaket

      public IcmpPaket(long identification)
  • Method Details

    • clone

      public IcmpPaket clone()
      Overrides:
      clone in class IpPaket
    • setIcmpType

      public void setIcmpType(int type)
    • setIcmpCode

      public void setIcmpCode(int code)
    • setPayload

      public void setPayload(IpPaket payload)
    • getIcmpType

      public int getIcmpType()
    • getIcmpCode

      public int getIcmpCode()
    • getPayload

      public IpPaket getPayload()
    • isEchoResponse

      public boolean isEchoResponse()
    • isEchoRequest

      public boolean isEchoRequest()
    • getSeqNr

      public int getSeqNr()
    • setSeqNr

      public void setSeqNr(int seqNr)
    • getIdentifier

      public int getIdentifier()
    • setIdentifier

      public void setIdentifier(int identifier)
    • toString

      public String toString()
      Overrides:
      toString in class IpPaket
    • toHex

      public Vector<HexDumpEntry> toHex()
      Overrides:
      toHex in class IpPaket
    • toHex

      public Vector<HexDumpEntry> toHex(boolean payload)
      Overrides:
      toHex in class IpPaket
    • computeLength

      public void computeLength()
      Overrides:
      computeLength in class IpPaket
    • berechneICMPPruefSumme

      public int berechneICMPPruefSumme(Vector<HexDumpEntry> dump)