Solstice X.25 9.2 Developer's Guide

12.9.1.1 Obtaining Version Number

The X25_VERSION ioctl returns the version number of the Solstice X.25 kernel code. You can issue this call on any socket. The version number returned for the current release of Solstice X.25 is 92.

int so, version, error;
 error = ioctl(s, X25_VERSION, &version);