• N
    sctp: Add peeloff-flags socket option · 2cb5c8e3
    Neil Horman 提交于
    Based on a request raised on the sctp devel list, there is a need to
    augment the sctp_peeloff operation while specifying the O_CLOEXEC and
    O_NONBLOCK flags (simmilar to the socket syscall).  Since modifying the
    SCTP_SOCKOPT_PEELOFF socket option would break user space ABI for existing
    programs, this patch creates a new socket option
    SCTP_SOCKOPT_PEELOFF_FLAGS, which accepts a third flags parameter to
    allow atomic assignment of the socket descriptor flags.
    
    Tested successfully by myself and the requestor
    Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
    CC: Vlad Yasevich <vyasevich@gmail.com>
    CC: "David S. Miller" <davem@davemloft.net>
    CC: Andreas Steinmetz <ast@domdv.de>
    CC: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
    Acked-by: NMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    2cb5c8e3
sctp.h 31.6 KB