Set proper name of application.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
extern int delete_chain(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
void print_rule(const struct ip6t_entry *e, struct ip6tc_handle *h, const char *chain, int counters);
+extern struct xtables_globals ip6tables_globals;
+
#endif /*_IP6TABLES_USER_H*/
#define LINUX_VERSION_MINOR(x) (((x)>> 8) & 0xFF)
#define LINUX_VERSION_PATCH(x) ( (x) & 0xFF)
+extern struct xtables_globals iptables_globals;
+
#endif /*_IPTABLES_USER_H*/
xtables_program_name = program_name;
xtables_init();
xtables_set_nfproto(NFPROTO_IPV6);
+ ip6tables_globals.program_name = "ip6tables-restore";
#ifdef NO_SHARED_LIBS
init_extensions();
#endif
xtables_program_name = program_name;
xtables_init();
xtables_set_nfproto(NFPROTO_IPV6);
+ ip6tables_globals.program_name = "ip6tables-save";
#ifdef NO_SHARED_LIBS
init_extensions();
#endif
xtables_program_name = program_name;
xtables_init();
xtables_set_nfproto(NFPROTO_IPV6);
+ ip6tables_globals.program_name = "ip6tables";
#ifdef NO_SHARED_LIBS
init_extensions();
#endif
struct xtables_globals ip6tables_globals = {
.option_offset = 0,
.program_version = IPTABLES_VERSION,
- .program_name = "ip6tables",
.opts = original_opts,
.exit_err = ip6tables_exit_error,
};
xtables_program_name = program_name;
xtables_init();
xtables_set_nfproto(NFPROTO_IPV4);
+ iptables_globals.program_name = "iptables-restore";
#ifdef NO_SHARED_LIBS
init_extensions();
#endif
xtables_program_name = program_name;
xtables_init();
xtables_set_nfproto(NFPROTO_IPV4);
+ iptables_globals.program_name = "iptables-save";
#ifdef NO_SHARED_LIBS
init_extensions();
#endif
xtables_program_name = program_name;
xtables_init();
xtables_set_nfproto(NFPROTO_IPV4);
+ iptables_globals.program_name = "iptables";
#ifdef NO_SHARED_LIBS
init_extensions();
#endif
struct xtables_globals iptables_globals = {
.option_offset = 0,
.program_version = IPTABLES_VERSION,
- .program_name = "iptables",
.opts = original_opts,
.exit_err = iptables_exit_error,
};