パッケージ org.pcap4j.packet

クラス IpV4Packet.IpV4Header

    • メソッドの詳細

      • getIhl

        public byte getIhl()
        戻り値:
        ihl
      • getIhlAsInt

        public int getIhlAsInt()
        戻り値:
        ihl
      • getTotalLength

        public short getTotalLength()
        戻り値:
        totalLength
      • getTotalLengthAsInt

        public int getTotalLengthAsInt()
        戻り値:
        totalLength
      • getIdentification

        public short getIdentification()
        戻り値:
        identification
      • getIdentificationAsInt

        public int getIdentificationAsInt()
        戻り値:
        identification
      • getReservedFlag

        public boolean getReservedFlag()
        戻り値:
        reservedFlag
      • getDontFragmentFlag

        public boolean getDontFragmentFlag()
        戻り値:
        dontFragmentFlag
      • getMoreFragmentFlag

        public boolean getMoreFragmentFlag()
        戻り値:
        moreFragmentFlag
      • getFragmentOffset

        public short getFragmentOffset()
        戻り値:
        fragmentOffset
      • getTtl

        public byte getTtl()
        戻り値:
        ttl
      • getTtlAsInt

        public int getTtlAsInt()
        戻り値:
        ttl
      • getProtocol

        public IpNumber getProtocol()
        定義:
        getProtocol インタフェース内 IpPacket.IpHeader
        戻り値:
        an IpNumber object which indicates the protocol of the following header.
      • getHeaderChecksum

        public short getHeaderChecksum()
        戻り値:
        headerChecksum
      • getPadding

        public byte[] getPadding()
        戻り値:
        padding
      • hasValidChecksum

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