]> git.ipfire.org Git - thirdparty/ipset.git/commit
netfilter: ipset: send error message manually
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 2 Feb 2011 19:43:18 +0000 (20:43 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 2 Feb 2011 19:43:18 +0000 (20:43 +0100)
commita7586eb0a0eed3554a104ace4fda912c3ab087ab
tree286c152f326f0ea59c0307e00b425173e8b2f1d5
parent85cee26417bb1456575028fdfe343b3db777a5c9
netfilter: ipset: send error message manually

When a message carries multiple commands and one of them triggers
an error, we have to report to the userspace which one was that.
The line number of the command plays this role and there's an attribute
reserved in the header part of the message to be filled out with the error
line number. In order not to modify the original message received from
the userspace, we construct a new, complete netlink error message and
modifies the attribute there, then send it.
Netlink is notified not to send its ACK/error message.
kernel/ip_set_core.c