RE: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-22 Thread Marcelo
Em 22 de julho de 2015 10:13:22 BRT, David Laight david.lai...@aculab.com escreveu: From: Marcelo Ricardo Leitner Sent: 14 July 2015 18:13 SCTP has this operation to peel off associations from a given socket and create a new socket using this association. We currently have two ways to use

RE: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-22 Thread David Laight
From: Marcelo Ricardo Leitner Sent: 14 July 2015 18:13 SCTP has this operation to peel off associations from a given socket and create a new socket using this association. We currently have two ways to use this operation: - via getsockopt(), on which it will also create and return a file

Re: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-20 Thread Marcelo Ricardo Leitner
On Thu, Jul 16, 2015 at 11:03:14AM -0300, Marcelo Ricardo Leitner wrote: On Thu, Jul 16, 2015 at 09:50:16AM -0400, Vlad Yasevich wrote: ... I am not familiar enough with DLM and its history, but my question is this: If dlm always peels off a socket for a new associations, why is it using

Re: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-16 Thread Vlad Yasevich
On 07/14/2015 01:13 PM, Marcelo Ricardo Leitner wrote: SCTP has this operation to peel off associations from a given socket and create a new socket using this association. We currently have two ways to use this operation: - via getsockopt(), on which it will also create and return a file

Re: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-16 Thread Marcelo Ricardo Leitner
On Thu, Jul 16, 2015 at 09:50:16AM -0400, Vlad Yasevich wrote: On 07/14/2015 01:13 PM, Marcelo Ricardo Leitner wrote: SCTP has this operation to peel off associations from a given socket and create a new socket using this association. We currently have two ways to use this operation: -

Re: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-15 Thread David Miller
From: Neil Horman nhor...@tuxdriver.com Date: Wed, 15 Jul 2015 09:18:28 -0400 Do we need to do something here to prevent user space calls from inadvertently accessing this option? And this is also not what I had anticipated was the implementation. I didn't mean that adding a new option number

Re: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-15 Thread Marcelo Ricardo Leitner
On 15-07-2015 10:18, Neil Horman wrote: On Tue, Jul 14, 2015 at 02:13:24PM -0300, Marcelo Ricardo Leitner wrote: SCTP has this operation to peel off associations from a given socket and create a new socket using this association. We currently have two ways to use this operation: - via

Re: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-15 Thread Neil Horman
On Tue, Jul 14, 2015 at 02:13:24PM -0300, Marcelo Ricardo Leitner wrote: SCTP has this operation to peel off associations from a given socket and create a new socket using this association. We currently have two ways to use this operation: - via getsockopt(), on which it will also create and