• Jozsef Kadlecsik's avatar
    netfilter: ipset: send error message manually · 5f52bc3c
    Jozsef Kadlecsik authored
    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: default avatarPatrick McHardy <kaber@trash.net>
    5f52bc3c
ip_set_core.c 41 KB