Class RouterSolicitation

  • All Implemented Interfaces:
    IPacket

    public class RouterSolicitation
    extends BasePacket
    Implements ICMPv6 Router Solicitation packet format. (RFC 4861)
    • Constructor Detail

      • RouterSolicitation

        public RouterSolicitation()
    • Method Detail

      • getOptions

        public List<NeighborDiscoveryOptions.Option> getOptions()
        Gets the Neighbor Discovery Protocol packet options.
        Returns:
        the Neighbor Discovery Protocol packet options
      • addOption

        public RouterSolicitation addOption​(byte type,
                                            byte[] data)
        Adds a Neighbor Discovery Protocol packet option.
        Parameters:
        type - the option type
        data - the option data
        Returns:
        this
      • serialize

        public byte[] serialize()
        Description copied from interface: IPacket
        Sets all payloads parent packet if applicable, then serializes this packet and all payloads.
        Returns:
        a byte[] containing this packet and payloads
      • deserializer

        public static Deserializer<RouterSolicitation> deserializer()
        Deserializer function for router solicitation packets.
        Returns:
        deserializer function