/* For xtables-arptables.c */
int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table);
/* For xtables-eb.c */
-int nft_init_eb(struct nft_handle *h);
+int nft_init_eb(struct nft_handle *h, const char *pname);
int ebt_get_current_chain(const char *chain);
int do_commandeb(struct nft_handle *h, int argc, char *argv[], char **table);
char *table = "filter";
struct nft_handle h;
- nft_init_eb(&h);
+ nft_init_eb(&h, "ebtables");
ret = do_commandeb(&h, argc, argv, &table);
if (ret)
cs->match_list->next = newnode;
}
-int nft_init_eb(struct nft_handle *h)
+int nft_init_eb(struct nft_handle *h, const char *pname)
{
- ebtables_globals.program_name = "ebtables";
+ ebtables_globals.program_name = pname;
if (xtables_init_all(&ebtables_globals, NFPROTO_BRIDGE) < 0) {
fprintf(stderr, "%s/%s Failed to initialize ebtables-compat\n",
ebtables_globals.program_name,
const char *table = NULL;
struct nft_handle h;
- nft_init_eb(&h);
+ nft_init_eb(&h, "ebtables-restore");
while ((c = getopt_long(argc, argv, "n",
ebt_restore_options, NULL)) != -1) {