パッケージ org.pcap4j.packet

クラス IcmpV4CommonPacket

    • メソッドの詳細

      • getHeader

        public IcmpV4CommonPacket.IcmpV4CommonHeader getHeader()
        クラスからコピーされた説明: AbstractPacket
        Returns the Header object representing this packet's header. This subclass have to override this method if the packet represented by the subclass has a header.
        定義:
        getHeader インタフェース内 Packet
        オーバーライド:
        getHeader クラス内 AbstractPacket
        戻り値:
        the Header object representing this packet's header. May be null if the header doesn't exist
      • getPayload

        public Packet getPayload()
        クラスからコピーされた説明: AbstractPacket
        Returns the Packet object representing this packet's payload. This subclass have to override this method if the packet represented by the subclass has a payload.
        定義:
        getPayload インタフェース内 Packet
        オーバーライド:
        getPayload クラス内 AbstractPacket
        戻り値:
        the Packet object representing this packet's payload. May be null if the payload doesn't exist
      • getBuilder

        public IcmpV4CommonPacket.Builder getBuilder()
        インタフェースからコピーされた説明: Packet
        Returns a new Builder object populated with this object's fields' values.
        定義:
        getBuilder インタフェース内 Packet
        定義:
        getBuilder クラス内 AbstractPacket
        戻り値:
        a new Builder object populated with this object's fields values
      • hasValidChecksum

        public boolean hasValidChecksum​(boolean acceptZero)
        パラメータ:
        acceptZero - acceptZero
        戻り値:
        true if the packet represented by this object has a valid checksum; false otherwise.