[ Previous | Next | Contents | Search ]
AIXLink/X.25 1.1 for AIX: Guide and Reference

X25_QUERY_ROUTER_ID (Query Router) ID x25sioctl Operation


Queries an entry in the routing table.


Note: This operation is restricted to user programs that have root authority.

The X25_QUERY_ROUTER_ID x25sioctl operation queries an entry in the routing table. For this operation, the arg parameter points to the x25_router_query structure. This structure contains the following fields:

router_id Specifies what entry to query.
pid Is set on return of the query to the process ID of the listening process. A value of 0 indicates that no process is listening.

Execution Environment

The X25_QUER_ROUTER_ID operation can be called from the process environment only.

Return Values

A return code of -1 indicates an unsuccessful operation. If -1 is returned, the kernel sets the errno global variable to one of the following values:

EFAULT Indicates the specified address was not valid.
EINVAL Indicates the specified router ID was not in the router table.

Implementation Specifics

The X25_QUER_ROUTER_ID operation functions with an X.25 Interface Co-Processor/2 that has been correctly configured for use on a qualified network. Consult adapter specifications for more information on configuring the adapter and network qualifications.

Related Information

The x25sioctl entry point.

[ Previous | Next | Contents | Search ]