if (errno == EINTR)
return -1;
- return netlink_io_error(ctx, loc,
- "Could not receive rules from kernel: %s",
- strerror(errno));
+ return 0;
}
ctx->data = h;
if (errno == EINTR)
return -1;
- return netlink_io_error(ctx, loc,
- "Could not receive chains from kernel: %s",
- strerror(errno));
+ return 0;
}
ctx->data = h;
if (errno == EINTR)
return -1;
- return netlink_io_error(ctx, loc,
- "Could not receive tables from kernel: %s",
- strerror(errno));
+ return 0;
}
nftnl_table_list_foreach(table_cache, list_table_cb, ctx);
if (errno == EINTR)
return -1;
- return netlink_io_error(ctx, loc,
- "Could not receive sets from kernel: %s",
- strerror(errno));
+ return 0;
}
err = nftnl_set_list_foreach(set_cache, list_set_cb, ctx);
if (errno == EINTR)
return -1;
- return netlink_io_error(ctx, loc,
- "Could not receive stateful objects from kernel: %s",
- strerror(errno));
+ return 0;
}
err = nftnl_obj_list_foreach(obj_cache, list_obj_cb, ctx);