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. |
The X25_QUER_ROUTER_ID operation can be called from the process environment only.
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. |
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.
The x25sioctl entry point.