パッケージ org.pcap4j.packet

クラス HdlcPppPacket.HdlcPppHeader

    • メソッドの詳細

      • getAddress

        public byte getAddress()
        戻り値:
        address
      • getControl

        public byte getControl()
        戻り値:
        control
      • getRawFields

        protected List<byte[]> getRawFields()
        クラスからコピーされた説明: AbstractPacket.AbstractHeader
        Returns a list of byte arrays which represents this header's fields. This method is called by calcLength() and buildRawData().
        戻り値:
        a list of byte arrays which represents this header's fields
      • length

        public int length()
        クラスからコピーされた説明: AbstractPacket.AbstractHeader
        Returns the header length in bytes. This method calls calcLength() and caches the return value when it is called for the first time, and then, this method returns the cached value from the second time.
        定義:
        length インタフェース内 Packet.Header
        戻り値:
        the length of the byte stream of the header represented by this object in bytes
      • equals

        public boolean equals​(Object obj)
        クラスからコピーされた説明: AbstractPacket.AbstractHeader
        Indicates whether some other object is "equal to" this one using return values of getRawData(). This method should be overridden so that it does more strict comparisons more efficiently.
      • calcHashCode

        protected int calcHashCode()
        クラスからコピーされた説明: AbstractPacket.AbstractHeader
        This method builds the value hashCode() will return using the byte array getRawData() returns. This method may be better to be overridden for performance reason.
        戻り値:
        a calculated hash code value for the object
      • getProtocol

        public PppDllProtocol getProtocol()
        戻り値:
        protocol