#include <netx25/x25_proto.h>
#include <netx25/x25db.h>
int x25tos (
struct xaddrf *xad, /* The X.25 structure */
unsigned char *cp, /* The returned string */
int lookup
);
Converts an xaddrf structure into an X.25 address. Before doing so, it checks the validity of the xaddrf structure.
The parameters are:
Table 8-28 x25tos parameters|
Parameters |
Description |
|---|---|
|
xad |
Points to the xaddrf structure for conversion. |
|
cp |
Points to the string the X.25 address will be written to. |
|
lookup |
Determines the level of address checking carried out before the structure is converted. 0 indicates no checking is carried out. This allows for faster conversion, but means the structure may not be valid for the type of network it refers to. A non-zero value means that the structure is checked using the configuration files. |
0 indicates successful completion. A negative return value indicates that the structure was invalid.