Solstice X.25 9.2 Developer's Guide

12.7.2.5 Throughput

Throughput is set in the Call Request packet as follows:

u_char      sendthruput, recvthruput;
 /* set sendthruput, recvthruput to desired values */
 f.type = T_THROUGHPUT;
 f.f_sendthruput = sendthruput;
 f.f_recvthruput = recvthruput;
 error = ioctl(s, X25_SET_FACILITY, &f); 

It is read as follows:

f.type = T_THROUGHPUT;
 error = ioctl(s, X25_GET_FACILITY, &f);
 sendthruput = f.f_sendthruput;
 recvthruput = f.f_recvthruput;

When throughput is set in the Call Request, the values set are proposed for the call (a zero value indicates the default for the link). Reading the value after the call is set up yields the result of negotiation.