mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 21:25:12 +02:00
ipset: fix compile error due to changed function signature with Linux 3.1
This commit is contained in:
@@ -1160,9 +1160,13 @@ ip_set_dump(struct sk_buff *skb, struct genl_info *info)
|
||||
return -IPSET_ERR_PROTOCOL;
|
||||
|
||||
genl_unlock();
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)
|
||||
ret = netlink_dump_start(ctnl, skb, nlh, ip_set_dump_start, ip_set_dump_done, 0);
|
||||
#else
|
||||
ret = netlink_dump_start(ctnl, skb, nlh,
|
||||
ip_set_dump_start,
|
||||
ip_set_dump_done);
|
||||
#endif
|
||||
genl_lock();
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user