@@ -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 {
@@ -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)
{
ah4_err can be shared with the upcomming vti ah handler. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> --- include/net/ah.h | 2 ++ net/ipv4/ah4.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-)