Re: [PATCH net] sctp: fix the issue that flags are ignored when using kernel_connect

2018-05-22 Thread Xin Long
On Wed, May 23, 2018 at 1:40 AM, David Miller wrote: > From: Xin Long > Date: Sun, 20 May 2018 16:39:10 +0800 > >> Now sctp uses inet_dgram_connect as its proto_ops .connect, and the flags >> param can't be passed into its proto .connect where this flags is really >> needed. >> >> sctp works arou

Re: [PATCH net] sctp: fix the issue that flags are ignored when using kernel_connect

2018-05-22 Thread David Miller
From: Xin Long Date: Sun, 20 May 2018 16:39:10 +0800 > Now sctp uses inet_dgram_connect as its proto_ops .connect, and the flags > param can't be passed into its proto .connect where this flags is really > needed. > > sctp works around it by getting flags from socket file in __sctp_connect. > It

Re: [PATCH net] sctp: fix the issue that flags are ignored when using kernel_connect

2018-05-22 Thread Michal Kubecek
On Sun, May 20, 2018 at 04:39:10PM +0800, Xin Long wrote: > Now sctp uses inet_dgram_connect as its proto_ops .connect, and the flags > param can't be passed into its proto .connect where this flags is really > needed. > > sctp works around it by getting flags from socket file in __sctp_connect. >

Re: [PATCH net] sctp: fix the issue that flags are ignored when using kernel_connect

2018-05-21 Thread Marcelo Ricardo Leitner
On Sun, May 20, 2018 at 04:39:10PM +0800, Xin Long wrote: > Now sctp uses inet_dgram_connect as its proto_ops .connect, and the flags > param can't be passed into its proto .connect where this flags is really > needed. > > sctp works around it by getting flags from socket file in __sctp_connect. >

Re: [PATCH net] sctp: fix the issue that flags are ignored when using kernel_connect

2018-05-21 Thread Neil Horman
On Sun, May 20, 2018 at 04:39:10PM +0800, Xin Long wrote: > Now sctp uses inet_dgram_connect as its proto_ops .connect, and the flags > param can't be passed into its proto .connect where this flags is really > needed. > > sctp works around it by getting flags from socket file in __sctp_connect. >

[PATCH net] sctp: fix the issue that flags are ignored when using kernel_connect

2018-05-20 Thread Xin Long
Now sctp uses inet_dgram_connect as its proto_ops .connect, and the flags param can't be passed into its proto .connect where this flags is really needed. sctp works around it by getting flags from socket file in __sctp_connect. It works for connecting from userspace, as inherently the user sock h