Note: This function is supported in AIX® 5.1 and earlier only.
Sets the active group address for a token-ring adapter.
The TOK_GRP_ADDR tokioctl operation sets the active group address for a token-ring adapter. Only one group address can be specified at a time for a token-ring adapter. For this operation, the arg parameter points to the tok_group_addr_t structure. This structure is defined in the /usr/include/sys/tokuser.h file and contains the following fields:
Field | Description |
---|---|
status | Returns one of the following
possible status values:
|
opcode | When set to TOK_ADD, the group address specified is added to the possible address for which the token-ring device accepts packets. When set to TOK_DEL, the group address is removed from the possible receive packet addresses. The TOK_ADD and TOK_DEL values are defined in the /usr/include/sys/tokuser.h file. |
group_addr | Specifies the 4 least significant bytes of the 6-byte network group address. The 2 most significant bytes are automatically set to 0xC000 by the token-ring adapter. The most significant bit within these 4 bytes cannot be set. They are ignored by the token-ring adapter. |
The TOK_GRP_ADDR operation functions with a Token-Ring High Performance Network Adapter that has been correctly configured for use on a qualified network. Consult adapter specifications for more information on configuring the adapter and network qualifications.
The TOK_GRP_ADDR tokioctl operation can be called from the process environment only.
Item | Description |
---|---|
EFAULT | Indicates the specified address is not valid. |
EINVAL | Indicates a parameter is not valid. |
ENETDOWN | Indicates an unrecoverable hardware error. |
ENOCONNECT | Indicates the device has not been started. |
ENOMSG | Indicates an error occurred. |