Class FramedAppleTalkLinkAttribute


  • public class FramedAppleTalkLinkAttribute
    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

      • FramedAppleTalkLinkAttribute

        public FramedAppleTalkLinkAttribute​(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 an unnumbered link.
        Parameters:
        networkNumber - the network number that should be between 0 and 65535 inclusive.
      • FramedAppleTalkLinkAttribute

        public FramedAppleTalkLinkAttribute​(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.
        Returns:
        the apple talk network number.
      • isUnumberedLink

        public boolean isUnumberedLink()
        Indicates if this is for an unnumbered serial link.
        Returns:
        true if this is an unnumbered link, false if it is numbered.
      • 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