#include <netx25/x25_proto.h>
#include <netx25/xnetdb.h>
#include <netx25/config_functions.h>
int x25_write_config_parameters (struct config_ident *idptr,
struct LINK_config_data *ptr,
struct X25_config_data *xptr,
struct MLP_config_data *mptr,
struct LAPB_config_data *lbptr,
struct LLC2_config_data *l2ptr,
struct WAN_config_data *wptr);
x25_write_config_parameters writes the specified data structure(s) into a configuration file identified by the number of the link it configures.
The parameters are:
Table 8-25 x25_write_config_parameters parameters|
Parameters |
Description |
|---|---|
|
idptr |
A pointer to the config_ident structure containing the link identifier. Setting this variable is mandatory. |
|
ptr |
A pointer to the link_item structure containing link information. Setting this variable is mandatory. |
|
xptr |
A pointer to the wlcfg structure containing the layer 3 (X.25) parameters. This parameter is mandatory. |
|
mptr |
A pointer to the mlp_item structure containing the MLP parameters. If you set this variable to NULL, information on these parameters is omitted. |
|
lbptr |
A pointer to the lliun_t structure containing the layer 2 LAPB parameters. If you set this variable to NULL, information on these parameters is omitted. |
|
l2ptr |
A pointer to the lliun_t structure containing the LLC2 parameters. If you set this variable to NULL, information on these parameters is omitted. |
|
wptr |
A pointer to the wan_tnioc structure containing the layer 1 (physical) parameters. If you set this variable to NULL, information on these parameters is omitted. |
A return value of 0 indicates success.