From patchwork Mon Dec 16 09:21:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steffen Klassert X-Patchwork-Id: 301553 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 979822C0090 for ; Mon, 16 Dec 2013 20:21:48 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752367Ab3LPJVp (ORCPT ); Mon, 16 Dec 2013 04:21:45 -0500 Received: from a.mx.secunet.com ([195.81.216.161]:51889 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869Ab3LPJVo (ORCPT ); Mon, 16 Dec 2013 04:21:44 -0500 Received: from localhost (alg1 [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id EABA51A0083; Mon, 16 Dec 2013 10:21:43 +0100 (CET) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IJ7_sXr5Ih2U; Mon, 16 Dec 2013 10:21:42 +0100 (CET) Received: from mail-gw-int (unknown [10.53.40.207]) by a.mx.secunet.com (Postfix) with ESMTP id D14AD1A0081; Mon, 16 Dec 2013 10:21:42 +0100 (CET) Received: from [10.53.40.200] (port=23770 helo=mail-srv1.secumail.de) by mail-gw-int with esmtp (Exim 4.80 #2 (Debian)) id 1VsUKG-0003mI-If; Mon, 16 Dec 2013 10:18:56 +0100 Received: from gauss.dd.secunet.de ([10.182.7.102]) by mail-srv1.secumail.de with Microsoft SMTPSVC(6.0.3790.4675); Mon, 16 Dec 2013 10:21:42 +0100 Received: by gauss.dd.secunet.de (Postfix, from userid 1000) id 75B675C16BE; Mon, 16 Dec 2013 10:21:42 +0100 (CET) Date: Mon, 16 Dec 2013 10:21:42 +0100 From: Steffen Klassert To: netdev@vger.kernel.org Cc: Christophe Gouault , Saurabh Mohan Subject: [PATCH RFC v2 05/13] ah4: Export ah4_err Message-ID: <20131216092142.GV31491@secunet.com> References: <20131216091835.GQ31491@secunet.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131216091835.GQ31491@secunet.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginalArrivalTime: 16 Dec 2013 09:21:43.0044 (UTC) FILETIME=[3BEB2440:01CEFA40] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org ah4_err can be shared with the upcomming vti ah handler. Signed-off-by: Steffen Klassert --- include/net/ah.h | 2 ++ net/ipv4/ah4.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/net/ah.h b/include/net/ah.h index ca95b98..6aa0f43 100644 --- a/include/net/ah.h +++ b/include/net/ah.h @@ -6,6 +6,8 @@ /* This is the maximum truncated ICV length that we know of. */ #define MAX_AH_AUTH_LEN 64 +int ah4_err(struct sk_buff *skb, u32 info); + struct crypto_ahash; struct ah_data { diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c index ea30e4e..4374671 100644 --- a/net/ipv4/ah4.c +++ b/net/ipv4/ah4.c @@ -397,7 +397,7 @@ out: return err; } -static int ah4_err(struct sk_buff *skb, u32 info) +int ah4_err(struct sk_buff *skb, u32 info) { struct net *net = dev_net(skb->dev); const struct iphdr *iph = (const struct iphdr *)skb->data; @@ -427,6 +427,7 @@ static int ah4_err(struct sk_buff *skb, u32 info) return 0; } +EXPORT_SYMBOL(ah4_err); static int ah_init_state(struct xfrm_state *x) {