const struct ip6t_ip6 *ip)
{
struct ip6tables_match *match
- = find_match(e->u.user.name, TRY_LOAD);
+ = find_match(e->u.user.name, TRY_LOAD, NULL);
if (match) {
printf("-m %s ", e->u.user.name);
/* print counters */
if (counters)
- printf("[%llu:%llu] ", e->counters.pcnt, e->counters.bcnt);
+ printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt);
/* print chain name */
printf("-A %s ", chain);
struct ip6t_counters count;
printf("%s ",
ip6tc_get_policy(chain, &count, &h));
- printf("[%llu:%llu]\n", count.pcnt, count.bcnt);
+ printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt);
} else {
printf("- [0:0]\n");
}
program_name = "ip6tables-save";
program_version = IPTABLES_VERSION;
+ lib_dir = getenv("IP6TABLES_LIB_DIR");
+ if (!lib_dir)
+ lib_dir = IP6T_LIB_DIR;
+
#ifdef NO_SHARED_LIBS
init_extensions();
#endif