The IPv4 and IPv6 situation is common enough to merit explicit status codes.
F_network_server_not,
F_network_time,
F_network_time_not,
+ F_network_version_four,
+ F_network_version_four_not,
+ F_network_version_six,
+ F_network_version_six_not,
#endif // _di_f_status_network_e_
#ifndef _di_f_status_number_e_
const f_string_static_t f_status_network_server_not_s = macro_f_string_static_t_initialize_1(F_status_network_server_not_s, 0, F_status_network_server_not_s_length);
const f_string_static_t f_status_network_time_s = macro_f_string_static_t_initialize_1(F_status_network_time_s, 0, F_status_network_time_s_length);
const f_string_static_t f_status_network_time_not_s = macro_f_string_static_t_initialize_1(F_status_network_time_not_s, 0, F_status_network_time_not_s_length);
+ const f_string_static_t f_status_network_version_four_s = macro_f_string_static_t_initialize_1(F_status_network_version_four_s, 0, F_status_network_version_four_s_length);
+ const f_string_static_t f_status_network_version_four_not_s = macro_f_string_static_t_initialize_1(F_status_network_version_four_not_s, 0, F_status_network_version_four_not_s_length);
+ const f_string_static_t f_status_network_version_six_s = macro_f_string_static_t_initialize_1(F_status_network_version_six_s, 0, F_status_network_version_six_s_length);
+ const f_string_static_t f_status_network_version_six_not_s = macro_f_string_static_t_initialize_1(F_status_network_version_six_not_s, 0, F_status_network_version_six_not_s_length);
#endif // _di_f_status_network_s_
#ifndef _di_f_status_number_s_
*name = f_status_network_time_not_s;
break;
+
+ case F_network_version_four:
+ *name = f_status_network_version_four_s;
+
+ break;
+
+ case F_network_version_four_not:
+ *name = f_status_network_version_four_not_s;
+
+ break;
+
+ case F_network_version_six:
+ *name = f_status_network_version_six_s;
+
+ break;
+
+ case F_network_version_six_not:
+ *name = f_status_network_version_six_not_s;
+
+ break;
#endif // _di_f_status_network_s_
#ifndef _di_f_status_number_s_
#define F_status_network_server_not_s "F_network_server_not"
#define F_status_network_time_s "F_network_time"
#define F_status_network_time_not_s "F_network_time_not"
+ #define F_status_network_version_four_s "F_network_version_four"
+ #define F_status_network_version_four_not_s "F_network_version_four_not"
+ #define F_status_network_version_six_s "F_network_version_six"
+ #define F_status_network_version_six_not_s "F_network_version_six_not"
#define F_status_network_s_length 9
#define F_status_network_busy_s_length 14
#define F_status_network_server_not_s_length 20
#define F_status_network_time_s_length 14
#define F_status_network_time_not_s_length 18
+ #define F_status_network_version_four_s_length 22
+ #define F_status_network_version_four_not_s_length 26
+ #define F_status_network_version_six_s_length 21
+ #define F_status_network_version_six_not_s_length 25
extern const f_string_static_t f_status_network_s;
extern const f_string_static_t f_status_network_busy_s;
extern const f_string_static_t f_status_network_server_not_s;
extern const f_string_static_t f_status_network_time_s;
extern const f_string_static_t f_status_network_time_not_s;
+ extern const f_string_static_t f_status_network_version_four_s;
+ extern const f_string_static_t f_status_network_version_four_not_s;
+ extern const f_string_static_t f_status_network_version_six_s;
+ extern const f_string_static_t f_status_network_version_six_not_s;
#endif // _di_f_status_network_s_
#ifndef _di_f_status_number_s_
F_network_server_not,
F_network_time,
F_network_time_not,
+ F_network_version_four,
+ F_network_version_four_not,
+ F_network_version_six,
+ F_network_version_six_not,
F_number,
F_number_decimal,
F_number_decimal_not,
f_status_network_server_not_s,
f_status_network_time_s,
f_status_network_time_not_s,
+ f_status_network_version_four_s,
+ f_status_network_version_four_not_s,
+ f_status_network_version_six_s,
+ f_status_network_version_six_not_s,
f_status_number_s,
f_status_number_decimal_s,
f_status_number_decimal_not_s,
f_status_status_code_last_s,
};
- for (uint16_t i = 0; i < 613; ++i) {
+ for (uint16_t i = 0; i < 617; ++i) {
f_string_static_t result = f_string_static_t_initialize;
return F_none;
}
+
+ if (f_compare_dynamic(name, f_status_network_version_four_s) == F_equal_to) {
+ *code = F_network_version_four;
+
+ return F_none;
+ }
+
+ if (f_compare_dynamic(name, f_status_network_version_four_not_s) == F_equal_to) {
+ *code = F_network_version_four_not;
+
+ return F_none;
+ }
+
+ if (f_compare_dynamic(name, f_status_network_version_six_s) == F_equal_to) {
+ *code = F_network_version_six;
+
+ return F_none;
+ }
+
+ if (f_compare_dynamic(name, f_status_network_version_six_not_s) == F_equal_to) {
+ *code = F_network_version_six_not;
+
+ return F_none;
+ }
#endif // _di_f_status_network_s_
#ifndef _di_f_status_number_s_
F_network_server_not,
F_network_time,
F_network_time_not,
+ F_network_version_four,
+ F_network_version_four_not,
+ F_network_version_six,
+ F_network_version_six_not,
F_number,
F_number_decimal,
F_number_decimal_not,
f_status_network_server_not_s,
f_status_network_time_s,
f_status_network_time_not_s,
+ f_status_network_version_four_s,
+ f_status_network_version_four_not_s,
+ f_status_network_version_six_s,
+ f_status_network_version_six_not_s,
f_status_number_s,
f_status_number_decimal_s,
f_status_number_decimal_not_s,
f_status_status_code_last_s,
};
- for (uint16_t i = 0; i < 613; ++i) {
+ for (uint16_t i = 0; i < 617; ++i) {
f_status_t result = F_none;