Class RIPV2AuthEntry

    • Field Detail

      • addressFamilyId

        protected short addressFamilyId
      • type

        protected short type
      • offset

        protected short offset
      • keyId

        protected byte keyId
      • authLen

        protected byte authLen
      • sequence

        protected int sequence
    • Constructor Detail

      • RIPV2AuthEntry

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

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

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

        public short getType()
        Returns:
        the authentication type
      • setType

        public RIPV2AuthEntry setType​(short type)
        Parameters:
        type - the authentication type to set
        Returns:
        this
      • getOffset

        public short getOffset()
        Returns:
        the offset of authentication data
      • setOffset

        public RIPV2AuthEntry setOffset​(short offset)
        Parameters:
        offset - the offset of authentication data to set
        Returns:
        this
      • getKeyId

        public byte getKeyId()
        Returns:
        the subnet mask
      • setKeyId

        public RIPV2AuthEntry setKeyId​(byte keyId)
        Parameters:
        keyId - The key id to set
        Returns:
        this
      • getAuthLen

        public byte getAuthLen()
        Returns:
        the authentication data length
      • setAuthLen

        public RIPV2AuthEntry setAuthLen​(byte authlen)
        Parameters:
        authlen - the length of the authentication data to set
        Returns:
        this
      • getSequence

        public int getSequence()
        Returns:
        the sequence number
      • setSequenceNumber

        public RIPV2AuthEntry setSequenceNumber​(int sequencenumber)
        Parameters:
        sequencenumber - sequence number to set
        Returns:
        this