From: Paolo Abeni <pabeni at redhat.com> To: mptcp at lists.01.org Subject: [MPTCP] sock diag uAPI and MPTCP Date: Fri, 19 Jun 2020 12:54:40 +0200 [thread overview] Message-ID: <c5b53444ca4c79b887629c93d954dadbc4a777da.camel@redhat.com> (raw) [-- Attachment #1: Type: text/plain, Size: 722 bytes --] Hi, IPPROTO_MPTCP value (0x106) can't be represented using the current sock diag uAPI, as the 'sdiag_protocol' field is 8 bits wide. To implement diag support for MPTCP socket, we will likely need a 'inet_diag_req_v3' with a wider 'sdiag_protocol' field. inet_diag_handler_cmd() could detect the version of the inet_diag_req_v* provided by user-space checking nlmsg_len() and convert _v2 reqs to _v3. This change will be a bit invasive, as all in kernel diag users will then operate only on 'inet_diag_req_v3' (many functions' signature change required), but the code-related changes will be encapsulated by inet_diag_handler_cmd(). Would the above be acceptable? Thanks for any feedback! Paolo
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Abeni <pabeni@redhat.com> To: Eric Dumazet <eric.dumazet@gmail.com>, David Miller <davem@davemloft.net> Cc: netdev@vger.kernel.org, mptcp@lists.01.org Subject: sock diag uAPI and MPTCP Date: Fri, 19 Jun 2020 12:54:40 +0200 [thread overview] Message-ID: <c5b53444ca4c79b887629c93d954dadbc4a777da.camel@redhat.com> (raw) Hi, IPPROTO_MPTCP value (0x106) can't be represented using the current sock diag uAPI, as the 'sdiag_protocol' field is 8 bits wide. To implement diag support for MPTCP socket, we will likely need a 'inet_diag_req_v3' with a wider 'sdiag_protocol' field. inet_diag_handler_cmd() could detect the version of the inet_diag_req_v* provided by user-space checking nlmsg_len() and convert _v2 reqs to _v3. This change will be a bit invasive, as all in kernel diag users will then operate only on 'inet_diag_req_v3' (many functions' signature change required), but the code-related changes will be encapsulated by inet_diag_handler_cmd(). Would the above be acceptable? Thanks for any feedback! Paolo
next reply other threads:[~2020-06-19 10:54 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-19 10:54 Paolo Abeni [this message] 2020-06-19 10:54 ` sock diag uAPI and MPTCP Paolo Abeni 2020-06-21 0:44 [MPTCP] " David Miller 2020-06-21 0:44 ` David Miller 2020-06-22 10:18 [MPTCP] " Paolo Abeni 2020-06-22 10:18 ` Paolo Abeni
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=c5b53444ca4c79b887629c93d954dadbc4a777da.camel@redhat.com \ --to=unknown@example.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.