aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorNeil Horman <[email protected]>2017-06-30 13:32:57 -0400
committerDavid S. Miller <[email protected]>2017-07-01 15:26:11 -0700
commit2cb5c8e378d10a57aa1c9eaee36bea46c27dd2b9 (patch)
treecc8f2f7500a0b48952c742c169fe858e536a9eba /net/lapb/lapb_subr.c
parent15324b25d5792b92c44714e20694a2df3a3a7b8f (diff)
sctp: Add peeloff-flags socket option
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: Neil Horman <[email protected]> CC: Vlad Yasevich <[email protected]> CC: "David S. Miller" <[email protected]> CC: Andreas Steinmetz <[email protected]> CC: Marcelo Ricardo Leitner <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions