This ioctl is used to retrieve per-virtual circuit state and statistics for the virtual circuit associated with the stream on which the ioctl is made.
The vcinfo structure is shown below:
struct vcinfo {
struct xaddrf rem_addr; /* = called for outward calls */
/* = caller for inward calls */
uint32_t xu_ident; /* link id */
uint32_t process_id; /* effective user id */
unsigned short lci; /* Logical Channel Identifier */
unsigned char xstate; /* VC state */
unsigned char xtag; /* VC check record */
unsigned char ampvc; /* =1 if a PVC */
unsigned char call_direction;
/* in=0, out=1 */
unsigned char domain; /* was in 8.0, not in R7. Put it back */
int perVC_stats[perVCmon_size];
};
The members of the vcinfo structure are:
Table 7-9 vcinfo structure fields|
Member |
Description |
|---|---|
|
rem_addr |
The called address if its an outgoing call, or the calling address for incoming calls. |
|
xu_ident |
The link identifier. |
|
process_id |
The relevant user id. |
|
lci |
The logical channel identifier. |
|
xstate |
The VC state. |
|
xtag |
The VC check record. |
|
ampvc |
Set to 1 if this is a PVC. |
|
call_direction |
0 indicates in incoming call, 1 an outgoing call. |
|
perVC_stats |
An array containing the per-virtual circuit statistics. The array is defined in the x25_control.h file. |