const f_string_static_t firewall_file_other_s = macro_f_string_static_t_initialize_1(FIREWALL_file_other_s, 0, FIREWALL_file_other_s_length);
const f_string_static_t firewall_file_suffix_s = macro_f_string_static_t_initialize_1(FIREWALL_file_suffix_s, 0, FIREWALL_file_suffix_s_length);
- const f_string_static_t firewall_network_path_s = macro_f_string_static_t_initialize_1(FIREWALL_network_path_s, 0, FIREWALL_network_path_s_length);
+ const f_string_static_t firewall_network_firewall_path_s = macro_f_string_static_t_initialize_1(FIREWALL_network_firewall_path_s, 0, FIREWALL_network_firewall_path_s_length);
const f_string_static_t firewall_network_devices_s = macro_f_string_static_t_initialize_1(FIREWALL_network_devices_s, 0, FIREWALL_network_devices_s_length);
#endif // _di_firewall_path_s_
#define FIREWALL_file_other_s "firewall-other"
#define FIREWALL_file_suffix_s "-firewall"
- #define FIREWALL_network_path_s "/etc/network/"
- #define FIREWALL_network_devices_s "/sys/class/net/"
+ #define FIREWALL_network_firewall_path_s "/etc/network/firewall/"
+ #define FIREWALL_network_devices_s "/sys/class/net/"
#define FIREWALL_file_first_s_length 14
#define FIREWALL_file_last_s_length 13
#define FIREWALL_file_other_s_length 14
#define FIREWALL_file_suffix_s_length 9
- #define FIREWALL_network_path_s_length 13
- #define FIREWALL_network_devices_s_length 15
+ #define FIREWALL_network_firewall_path_s_length 22
+ #define FIREWALL_network_devices_s_length 15
extern const f_string_static_t firewall_file_first_s;
extern const f_string_static_t firewall_file_last_s;
extern const f_string_static_t firewall_file_other_s;
extern const f_string_static_t firewall_file_suffix_s;
- extern const f_string_static_t firewall_network_path_s;
+ extern const f_string_static_t firewall_network_firewall_path_s;
extern const f_string_static_t firewall_network_devices_s;
#endif // _di_firewall_path_s_
main->data.file.used = 0;
if (main->setting.flag & firewall_main_flag_operation_stop_restart_lock_d) {
- main->data.file.used = firewall_network_path_s.used + firewall_file_other_s.used;
+ main->data.file.used = firewall_network_firewall_path_s.used + firewall_file_other_s.used;
f_char_t path_file_other[main->data.file.used + 1];
main->data.file.string = path_file_other;
path_file_other[main->data.file.used] = 0;
- memcpy(path_file_other, firewall_network_path_s.string, sizeof(f_char_t) * firewall_network_path_s.used);
- memcpy(path_file_other + firewall_network_path_s.used, firewall_file_other_s.string, sizeof(f_char_t) * firewall_file_other_s.used);
+ memcpy(path_file_other, firewall_network_firewall_path_s.string, sizeof(f_char_t) * firewall_network_firewall_path_s.used);
+ memcpy(path_file_other + firewall_network_firewall_path_s.used, firewall_file_other_s.string, sizeof(f_char_t) * firewall_file_other_s.used);
firewall_operate_buffer_chain(main, main->data.file, F_false);
if (F_status_is_error(main->setting.state.status) || main->setting.state.status == F_child) return;
}
if (main->setting.flag & firewall_main_flag_operation_start_restart_d) {
- main->data.file.used = firewall_network_path_s.used + firewall_file_first_s.used;
+ main->data.file.used = firewall_network_firewall_path_s.used + firewall_file_first_s.used;
f_char_t path_file_first[main->data.file.used + 1];
main->data.file.string = path_file_first;
path_file_first[main->data.file.used] = 0;
- memcpy(path_file_first, firewall_network_path_s.string, sizeof(f_char_t) * firewall_network_path_s.used);
- memcpy(path_file_first + firewall_network_path_s.used, firewall_file_first_s.string, sizeof(f_char_t) * firewall_file_first_s.used);
+ memcpy(path_file_first, firewall_network_firewall_path_s.string, sizeof(f_char_t) * firewall_network_firewall_path_s.used);
+ memcpy(path_file_first + firewall_network_firewall_path_s.used, firewall_file_first_s.string, sizeof(f_char_t) * firewall_file_first_s.used);
firewall_operate_buffer_chain(main, main->data.file, F_false);
main->cache.path_file.used = 0;
main->data.device = j;
- main->setting.state.status = f_memory_array_increase_by(firewall_network_path_s.used + main->setting.devices.array[j].used + firewall_file_suffix_s.used + 1, sizeof(f_char_t), (void **) &main->cache.path_file.string, &main->cache.path_file.used, &main->cache.path_file.size);
+ main->setting.state.status = f_memory_array_increase_by(firewall_network_firewall_path_s.used + main->setting.devices.array[j].used + firewall_file_suffix_s.used + 1, sizeof(f_char_t), (void **) &main->cache.path_file.string, &main->cache.path_file.used, &main->cache.path_file.size);
if (F_status_is_error(main->setting.state.status)) {
firewall_print_error(&main->program.error, macro_firewall_f(f_memory_array_increase_by));
main->data.file = main->cache.path_file;
- main->setting.state.status = f_string_dynamic_append(firewall_network_path_s, &main->cache.path_file);
+ main->setting.state.status = f_string_dynamic_append(firewall_network_firewall_path_s, &main->cache.path_file);
if (F_status_is_error_not(main->setting.state.status)) {
main->setting.state.status = f_string_dynamic_append(main->setting.devices.array[j], &main->cache.path_file);
main->cache.path_file.used = 0;
- main->setting.state.status = f_string_dynamic_append(firewall_network_path_s, &main->cache.path_file);
+ main->setting.state.status = f_string_dynamic_append(firewall_network_firewall_path_s, &main->cache.path_file);
if (F_status_is_error_not(main->setting.state.status)) {
main->setting.state.status = f_string_dynamic_append(firewall_file_last_s, &main->cache.path_file);