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

pcap.codec.ndp.NeighborDiscoveryOptions 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.ndp;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import pcap.codec.AbstractPacket;
import pcap.codec.Packet;
import pcap.codec.UnknownPacket;
import pcap.common.annotation.Inclubating;
import pcap.common.memory.Memory;
import pcap.common.util.NamedNumber;
import pcap.common.util.Strings;

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

  private final Header header;
  private final Packet payload;

  /**
   * Builde Neighbor Discovery Options packet.
   *
   * @param builder builder.
   */
  public NeighborDiscoveryOptions(Builder builder) {
    this.header = new Header(builder);
    this.payload = null;
    payloadBuffer = builder.payloadBuffer;
  }

  @Override
  public Header header() {
    return header;
  }

  @Override
  public Packet payload() {
    return payload;
  }

  public static class Header extends AbstractPacket.Header {

    private final List




© 2015 - 2025 Weber Informatics LLC | Privacy Policy