Class RIPngEntry

  • All Implemented Interfaces:
    IPacket

    public class RIPngEntry
    extends BasePacket
    Default DHCP option.
    • Field Detail

      • prefix

        protected byte[] prefix
      • routeTag

        protected short routeTag
      • prefixLen

        protected int prefixLen
      • metric

        protected int metric
    • Constructor Detail

      • RIPngEntry

        public RIPngEntry()
    • Method Detail

      • 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<RIPngEntry> deserializer()
        Deserializer function for RIPng entry.
        Returns:
        deserializer function
      • getPrefix

        public byte[] getPrefix()
        Returns:
        the IPv6 prefix
      • setPrefix

        public RIPngEntry setPrefix​(byte[] prefix)
        Parameters:
        prefix - the IPv6 prefix to set
        Returns:
        this
      • getRouteTag

        public short getRouteTag()
        Returns:
        the route tag
      • setRouteTag

        public RIPngEntry setRouteTag​(short routetag)
        Parameters:
        routetag - the route tag to set
        Returns:
        this
      • getPrefixLen

        public int getPrefixLen()
        Returns:
        the prefix length
      • setPrefixLen

        public RIPngEntry setPrefixLen​(int prefixlen)
        Parameters:
        prefixlen - the prefix length to set
        Returns:
        this
      • getMetric

        public int getMetric()
        Returns:
        the metric
      • setMetric

        public RIPngEntry setMetric​(int metric)
        Parameters:
        metric - the route metric to set
        Returns:
        this