From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Klassert Subject: Re: XFRM: Could we change ESP padding? Date: Mon, 17 Dec 2012 08:25:44 +0100 Message-ID: <20121217072544.GL18940@secunet.com> References: <20121217064302.GK18940@secunet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org To: RongQing Li Return-path: Received: from a.mx.secunet.com ([195.81.216.161]:43695 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750813Ab2LQHZr (ORCPT ); Mon, 17 Dec 2012 02:25:47 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, Dec 17, 2012 at 02:56:47PM +0800, RongQing Li wrote: > 2012/12/17 Steffen Klassert : > > > > RFC 4303 says that the receiver should inspect the padding field, > > so we are free to do it or not. You can find a comment that explains > > why we don't do it in the esp_input_done2() function ;-) > > > Thanks. > > But I see BSD has implemented it, and cisco device has similar implmentation. > The comment at the place where the padding field inspection should be done is rather old. I always respected this when I came accross this code, but I would not mind to have it implemented. Not sure if somebody still remembers exactly why it was not implemented.