Class FramedAppleTalkNetworkAttribute


  • public class FramedAppleTalkNetworkAttribute
    extends Attribute
    Class representing the structure of the Framed-AppleTalk-Link attribute as specified in section 5.37 of RFC 2865.
    • Field Detail

      • UN_NUMBERED

        public static final int UN_NUMBERED
        The special link value that indicates an unnumbered link.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FramedAppleTalkNetworkAttribute

        public FramedAppleTalkNetworkAttribute​(int networkNumber)
        Construct a new instance from the network number it should represent between 0 and 65535 notwithstanding use of an integer. The int type is used since short types in java are signed and hence can't represent an unsigned value of 32786 or greater. A value of 0 indicates that the NAS should assign a network for the user.
        Parameters:
        networkNumber - the network number that should be between 0 and 65535 inclusive.
      • FramedAppleTalkNetworkAttribute

        public FramedAppleTalkNetworkAttribute​(byte[] octets)
        Constructs a new instance from the on-the-wire bytes for this attribute including the prefixing attribute-type code octet and length octet.
        Parameters:
        octets - the on-the-wire bytes from which to construct this instance
    • Method Detail

      • getNetworkNumber

        public int getNetworkNumber()
        Returns the apple talk network number between 0 and 65535 to probe to allocate a node for the user.
        Returns:
        the apple talk network number.
      • isNasAssigned

        public boolean isNasAssigned()
        Indicates if the NAS should assign a network for the user.
        Returns:
        true if the NAS should assign a network for the user.
      • toStringImpl

        public String toStringImpl()
        Used by super class to log the attribute's contents when packet logging is enabled.
        Overrides:
        toStringImpl in class Attribute
        Returns:
        content representation for traffic logging