Class RIPV2Entry

    • Constructor Detail

      • RIPV2Entry

        public RIPV2Entry()
    • 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<RIPV2Entry> deserializer()
        Deserializer function for RIPv2 entry.
        Returns:
        deserializer function
      • getAddressFamilyId

        public short getAddressFamilyId()
        Returns:
        the Address Family Identifier
      • setAddressFamilyId

        public RIPV2Entry setAddressFamilyId​(short addressFamilyIdentifier)
        Parameters:
        addressFamilyIdentifier - the address family identifier to set
        Returns:
        this
      • getRouteTag

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

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

        public Ip4Address getipAddress()
        Returns:
        the ip address
      • setIpAddress

        public RIPV2Entry setIpAddress​(Ip4Address ipaddress)
        Parameters:
        ipaddress - the Ip Address to set
        Returns:
        this
      • getSubnetMask

        public Ip4Address getSubnetMask()
        Returns:
        the subnet mask
      • setSubnetMask

        public RIPV2Entry setSubnetMask​(Ip4Address subnetmask)
        Parameters:
        subnetmask - the subnet mask to set
        Returns:
        this
      • getNextHop

        public Ip4Address getNextHop()
        Returns:
        the next hop
      • setNextHop

        public RIPV2Entry setNextHop​(Ip4Address nexthop)
        Parameters:
        nexthop - the ip address if the next hop to set
        Returns:
        this
      • getMetric

        public int getMetric()
        Returns:
        the metric
      • setMetric

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