From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH net-next 2/3] net: core: introduce skb_probe_transport_header() Date: Wed, 27 Mar 2013 07:45:50 -0700 Message-ID: <1364395550.15753.6.camel@edumazet-glaptop> References: <1364375482-7439-1-git-send-email-jasowang@redhat.com> <1364375482-7439-2-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com, Eric Dumazet To: Jason Wang Return-path: In-Reply-To: <1364375482-7439-2-git-send-email-jasowang@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wed, 2013-03-27 at 17:11 +0800, Jason Wang wrote: > Sometimes, we need probe and set the transport header for packets (e.g from > untrusted source). This patch introduces a new helper > skb_probe_transport_header() which tries to probe and set the l4 header through > skb_flow_dissect(), if not just set the transport header to the hint passed by > caller. > > Cc: Eric Dumazet > Signed-off-by: Jason Wang > --- > include/linux/skbuff.h | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) Acked-by: Eric Dumazet