All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pcap.codec.ip.Ip Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
/** This code is licenced under the GPL version 2. */
package pcap.codec.ip;

import pcap.codec.AbstractPacket;
import pcap.common.annotation.Inclubating;

/** @author Ardika Rommy Sanjaya */
@Inclubating
public abstract class Ip extends AbstractPacket {

  protected abstract static class AbstractPacketHeader extends Header {

    protected final byte version;

    protected AbstractPacketHeader(final byte version) {
      this.version = version;
    }

    public int version() {
      return this.version & 0xf;
    }
  }

  protected abstract static class AbstractPaketBuilder extends Builder {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy