]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: send error message manually
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 2 Feb 2011 22:56:00 +0000 (23:56 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 2 Feb 2011 22:56:00 +0000 (23:56 +0100)
commit82156861c056439f6b2a97f451ce9360a9370906
treeb4a24cd688e4e87084975d3d6cd338fefe3581b2
parentb12bc03c728892ccbcf51b1a9bdab1fc30ea5819
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.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/ipset/ip_set_core.c