3 /* File autogenerated by gengetopt version 2.17 */
8 /* If we use autoconf. */
15 #endif /* __cplusplus */
17 #ifndef CMDLINE_PARSER_PACKAGE
18 #define CMDLINE_PARSER_PACKAGE PACKAGE
21 #ifndef CMDLINE_PARSER_VERSION
22 #define CMDLINE_PARSER_VERSION VERSION
25 struct gengetopt_args_info
{
26 const char *help_help
; /* Print help and exit help description. */
27 const char *version_help
; /* Print version and exit help description. */
28 int debug_flag
; /* Run in debug mode (default=off). */
29 const char *debug_help
; /* Run in debug mode help description. */
30 char *conf_arg
; /* Read configuration file. */
31 char *conf_orig
; /* Read configuration file original value given at command line. */
32 const char *conf_help
; /* Read configuration file help description. */
33 char *pidfile_arg
; /* Filename of process id file (default='./sgsnemu.pid'). */
34 char *pidfile_orig
; /* Filename of process id file original value given at command line. */
35 const char *pidfile_help
; /* Filename of process id file help description. */
36 char *statedir_arg
; /* Directory of nonvolatile data (default='./'). */
37 char *statedir_orig
; /* Directory of nonvolatile data original value given at command line. */
38 const char *statedir_help
; /* Directory of nonvolatile data help description. */
39 char *dns_arg
; /* DNS Server to use. */
40 char *dns_orig
; /* DNS Server to use original value given at command line. */
41 const char *dns_help
; /* DNS Server to use help description. */
42 char *listen_arg
; /* Local interface. */
43 char *listen_orig
; /* Local interface original value given at command line. */
44 const char *listen_help
; /* Local interface help description. */
45 char *remote_arg
; /* Remote host. */
46 char *remote_orig
; /* Remote host original value given at command line. */
47 const char *remote_help
; /* Remote host help description. */
48 int contexts_arg
; /* Number of contexts (default='1'). */
49 char *contexts_orig
; /* Number of contexts original value given at command line. */
50 const char *contexts_help
; /* Number of contexts help description. */
51 int timelimit_arg
; /* Exit after timelimit seconds (default='0'). */
52 char *timelimit_orig
; /* Exit after timelimit seconds original value given at command line. */
53 const char *timelimit_help
; /* Exit after timelimit seconds help description. */
54 int gtpversion_arg
; /* GTP version to use (default='1'). */
55 char *gtpversion_orig
; /* GTP version to use original value given at command line. */
56 const char *gtpversion_help
; /* GTP version to use help description. */
57 char *apn_arg
; /* Access point name (default='internet'). */
58 char *apn_orig
; /* Access point name original value given at command line. */
59 const char *apn_help
; /* Access point name help description. */
60 int selmode_arg
; /* Selection mode (default='0x01'). */
61 char *selmode_orig
; /* Selection mode original value given at command line. */
62 const char *selmode_help
; /* Selection mode help description. */
63 char *rattype_arg
; /* Radio Access Technology Type (optional). */
66 char *userloc_arg
; /* User Location Information (optional). */
69 char *rai_arg
; /* Routing Area Information (optional). */
72 char *mstz_arg
; /* MS Time Zone (optional). */
75 char *imeisv_arg
; /* IMEI(SV) (optional). */
78 char *imsi_arg
; /* IMSI (default='240010123456789'). */
79 char *imsi_orig
; /* IMSI original value given at command line. */
80 const char *imsi_help
; /* IMSI help description. */
81 int nsapi_arg
; /* NSAPI (default='0'). */
82 char *nsapi_orig
; /* NSAPI original value given at command line. */
83 const char *nsapi_help
; /* NSAPI help description. */
84 char *msisdn_arg
; /* Mobile Station ISDN number (default='46702123456'). */
85 char *msisdn_orig
; /* Mobile Station ISDN number original value given at command line. */
86 const char *msisdn_help
; /* Mobile Station ISDN number help description. */
87 int qos_arg
; /* Requested quality of service (default='0x0b921f'). */
88 char *qos_orig
; /* Requested quality of service original value given at command line. */
89 const char *qos_help
; /* Requested quality of service help description. */
90 unsigned long long int qose1_arg
; /* Requested quality of service Extension 1 */
91 char *qose1_orig
; /* Requested quality of service Extension 1 original value given at command line. */
92 int qose2_arg
; /* Requested quality of service Extension 2 */
93 char *qose2_orig
; /* Requested quality of service Extension 2 original value given at command line. */
94 int qose3_arg
; /* Requested quality of service Extension 3 */
95 char *qose3_orig
; /* Requested quality of service Extension 3 original value given at command line. */
96 int qose4_arg
; /* Requested quality of service Extension 4 */
97 char *qose4_orig
; /* Requested quality of service Extension 4 original value given at command line. */
98 int charging_arg
; /* Charging characteristics (default='0x0800'). */
99 char *charging_orig
; /* Charging characteristics original value given at command line. */
100 const char *charging_help
; /* Charging characteristics help description. */
101 char *uid_arg
; /* Login user ID (default='mig'). */
102 char *uid_orig
; /* Login user ID original value given at command line. */
103 const char *uid_help
; /* Login user ID help description. */
104 char *pwd_arg
; /* Login password (default='hemmelig'). */
105 char *pwd_orig
; /* Login password original value given at command line. */
106 const char *pwd_help
; /* Login password help description. */
107 int createif_flag
; /* Create local network interface (default=off). */
108 const char *createif_help
; /* Create local network interface help description. */
109 char *net_arg
; /* Network address for local interface. */
110 char *net_orig
; /* Network address for local interface original value given at command line. */
111 const char *net_help
; /* Network address for local interface help description. */
112 int defaultroute_flag
; /* Create default route (default=off). */
113 const char *defaultroute_help
; /* Create default route help description. */
114 char *ipup_arg
; /* Script to run after link-up. */
115 char *ipup_orig
; /* Script to run after link-up original value given at command line. */
116 const char *ipup_help
; /* Script to run after link-up help description. */
117 char *ipdown_arg
; /* Script to run after link-down. */
118 char *ipdown_orig
; /* Script to run after link-down original value given at command line. */
119 const char *ipdown_help
; /* Script to run after link-down help description. */
120 char *pinghost_arg
; /* Ping remote host. */
121 char *pinghost_orig
; /* Ping remote host original value given at command line. */
122 const char *pinghost_help
; /* Ping remote host help description. */
123 int pingrate_arg
; /* Number of ping req per second (default='1'). */
124 char *pingrate_orig
; /* Number of ping req per second original value given at command line. */
125 const char *pingrate_help
; /* Number of ping req per second help description. */
126 int pingsize_arg
; /* Number of ping data bytes (default='56'). */
127 char *pingsize_orig
; /* Number of ping data bytes original value given at command line. */
128 const char *pingsize_help
; /* Number of ping data bytes help description. */
129 int pingcount_arg
; /* Number of ping req to send (default='0'). */
130 char *pingcount_orig
; /* Number of ping req to send original value given at command line. */
131 const char *pingcount_help
; /* Number of ping req to send help description. */
132 int pingquiet_flag
; /* Do not print ping packet info (default=off). */
133 const char *pingquiet_help
; /* Do not print ping packet info help description. */
134 int norecovery_flag
; /* Do not print ping packet info (default=off). */
135 const char *norecovery_help
; /* Do not print ping packet info help description. */
137 int help_given
; /* Whether help was given. */
138 int version_given
; /* Whether version was given. */
139 int debug_given
; /* Whether debug was given. */
140 int conf_given
; /* Whether conf was given. */
141 int pidfile_given
; /* Whether pidfile was given. */
142 int statedir_given
; /* Whether statedir was given. */
143 int dns_given
; /* Whether dns was given. */
144 int listen_given
; /* Whether listen was given. */
145 int remote_given
; /* Whether remote was given. */
146 int contexts_given
; /* Whether contexts was given. */
147 int timelimit_given
; /* Whether timelimit was given. */
148 int gtpversion_given
; /* Whether gtpversion was given. */
149 int apn_given
; /* Whether apn was given. */
150 int selmode_given
; /* Whether selmode was given. */
151 int rattype_given
; /* Whether rattype was given. */
152 int userloc_given
; /* Whether userloc was given. */
153 int rai_given
; /* Whether RAI was given. */
154 int mstz_given
; /* Whether mstz was given. */
155 int imeisv_given
; /* Whether imeisv was given. */
156 int imsi_given
; /* Whether imsi was given. */
157 int nsapi_given
; /* Whether nsapi was given. */
158 int msisdn_given
; /* Whether msisdn was given. */
159 int qos_given
; /* Whether qos was given. */
160 int qose1_given
; /* Whether qos Extension 1 was given. */
161 int qose2_given
; /* Whether qos Extension 2 was given. */
162 int qose3_given
; /* Whether qos Extension 3 was given. */
163 int qose4_given
; /* Whether qos Extension 4 was given. */
164 int charging_given
; /* Whether charging was given. */
165 int uid_given
; /* Whether uid was given. */
166 int pwd_given
; /* Whether pwd was given. */
167 int createif_given
; /* Whether createif was given. */
168 int net_given
; /* Whether net was given. */
169 int defaultroute_given
; /* Whether defaultroute was given. */
170 int ipup_given
; /* Whether ipup was given. */
171 int ipdown_given
; /* Whether ipdown was given. */
172 int pinghost_given
; /* Whether pinghost was given. */
173 int pingrate_given
; /* Whether pingrate was given. */
174 int pingsize_given
; /* Whether pingsize was given. */
175 int pingcount_given
; /* Whether pingcount was given. */
176 int pingquiet_given
; /* Whether pingquiet was given. */
177 int norecovery_given
; /* Whether norecovery was given. */
181 extern const char *gengetopt_args_info_purpose
;
182 extern const char *gengetopt_args_info_usage
;
183 extern const char *gengetopt_args_info_help
[];
185 int cmdline_parser(int argc
, char *const *argv
,
186 struct gengetopt_args_info
*args_info
);
187 int cmdline_parser2(int argc
, char *const *argv
,
188 struct gengetopt_args_info
*args_info
,
189 int override
, int initialize
, int check_required
);
190 int cmdline_parser_file_save(const char *filename
,
191 struct gengetopt_args_info
*args_info
);
193 void cmdline_parser_print_help(void);
194 void cmdline_parser_print_version(void);
196 void cmdline_parser_init(struct gengetopt_args_info
*args_info
);
197 void cmdline_parser_free(struct gengetopt_args_info
*args_info
);
199 int cmdline_parser_configfile(char *const filename
,
200 struct gengetopt_args_info
*args_info
,
201 int override
, int initialize
,
204 int cmdline_parser_required(struct gengetopt_args_info
*args_info
,
205 const char *prog_name
);
209 #endif /* __cplusplus */
210 #endif /* CMDLINE_H */