Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081AbdFSRw0 (ORCPT ); Mon, 19 Jun 2017 13:52:26 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:35516 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751116AbdFSRwZ (ORCPT ); Mon, 19 Jun 2017 13:52:25 -0400 Date: Mon, 19 Jun 2017 13:52:23 -0400 (EDT) Message-Id: <20170619.135223.1664090809298285558.davem@davemloft.net> To: colona@arista.com Cc: eric.dumazet@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] tcp: md5: add TCP_MD5SIG_EXT socket option to set a key address prefix From: David Miller In-Reply-To: <20170616010707.27666-2-colona@arista.com> References: <20170610021449.16091-1-colona@arista.com> <20170616010707.27666-1-colona@arista.com> <20170616010707.27666-2-colona@arista.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 19 Jun 2017 10:10:41 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 806 Lines: 20 From: Ivan Delalande Date: Thu, 15 Jun 2017 18:07:07 -0700 > Replace first padding in the tcp_md5sig structure with a new flag field > and address prefix length so it can be specified when configuring a new > key for TCP MD5 signature. The tcpm_flags field will only be used if the > socket option is TCP_MD5SIG_EXT to avoid breaking existing programs, and > tcpm_prefixlen only when the TCP_MD5SIG_FLAG_PREFIX flag is set. > > Signed-off-by: Bob Gilligan > Signed-off-by: Eric Mowat > Signed-off-by: Ivan Delalande Applied but I had to renumber TCP_MD5SIG_EXT to 32 since 31 is already taken by TCP_ULP in my tree. It's a shame we had to add a new sockopt number to do this, but I can't think of a better idea. Thanks.