#include <netx25/x25_proto.h> #include <netx25/xnetdb.h> #include <netx25/config_functions.h> int x25_write_config_parameter_file (char *infname, 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_file writes the specified data structure(s) into a configuration file identified by its filename.
Parameter |
Description |
---|---|
filename |
The name of the file to contain the data structure. |
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 an error.