Solstice X.25 9.2 Developer's Guide

12.7.2.8 RPOA Selection

Solstice X.25 supports the setting of up to three (MAX_RPOA) RPOA transit networks (in the extended form). If only one is specified, the non-extended form of the facility is used. An RPOA transit network is specified as a decimal integer in the range 0-9999.

This facility is set as follows:

u_short      rpoa0, rpoa1, rpoa2;
 /* set rpoa0, rpoa1, rpoa2 */
 f.type = T_RPOA;
 f.f_nrpoa = 3;
 f.f_rpoa_index[0] = rpoa0;
 f.f_rpoa_index[1] = rpoa1;
 f.f_rpoa_index[2] = rpoa2;
 error = ioctl(s, X25_SET_FACILITY, &f);

To read this facility:

f.type = T_RPOA;
 error = ioctl(s, X25_GET_FACILITY, &f);
 rpoa0 = f.f_rpoa_index[0];
 rpoa1 = f.f_rpoa_index[1];
 rpoa2 = f.f_rpoa_index[2];