#include <netx25/x25_proto.h> #include <netx25/x25db.h> int stox25 ( unsigned char *cp, /* X.25 dot format address */ struct xaddrf *xad, /* The returned structure */ int lookup );
Converts an X.25 format address into an xaddrf structure. Can also be used as a validity check for X.25 addresses.
The parameters are:
Table 8-19 stox25 parameters
Parameter |
Description |
---|---|
cp |
Points to a character string containing the X.25 address for conversion. |
xad |
Points to the xaddrf structure containing the X.25 dot format address. |
lookup |
Determines the level of address checking carried out before the address is converted. 0 indicates no address checking is carried out. This allows for faster conversion, but means the address may not be valid for the type of network it is used on. A non-zero value means that the address format is checked with the configuration file for the link. |
0 indicates successful completion. A negative return value indicates that the X.25 address was invalid.