From 772bf4a78d23b9452c30de5a0a3f596ce3955edc Mon Sep 17 00:00:00 2001 From: Sachin Saxena Date: Mon, 4 Mar 2013 10:24:13 +0000 Subject: net/ipv4: Exporting ip_rcv_options and ip_forward_options functions Signed-off-by: Arun Pathak Signed-off-by: Sachin Saxena Change-Id: I72177eea8206d9014838e0948a3a049a0b59735d Reviewed-on: http://git.am.freescale.net:8181/876 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING diff --git a/include/net/ip.h b/include/net/ip.h index a68f838..ba9a638 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -432,6 +432,7 @@ extern int ip_options_get_from_user(struct net *net, struct ip_options_rcu **opt unsigned char __user *data, int optlen); extern void ip_options_undo(struct ip_options * opt); extern void ip_forward_options(struct sk_buff *skb); +extern int ip_rcv_options(struct sk_buff *skb); extern int ip_options_rcv_srr(struct sk_buff *skb); /* diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index f1395a6..b007afb 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c @@ -264,7 +264,7 @@ int ip_local_deliver(struct sk_buff *skb) ip_local_deliver_finish); } -static inline bool ip_rcv_options(struct sk_buff *skb) +int ip_rcv_options(struct sk_buff *skb) { struct ip_options *opt; const struct iphdr *iph; @@ -312,6 +312,7 @@ static inline bool ip_rcv_options(struct sk_buff *skb) drop: return true; } +EXPORT_SYMBOL(ip_rcv_options); int sysctl_ip_early_demux __read_mostly = 1; EXPORT_SYMBOL(sysctl_ip_early_demux); diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c index f6289bf..fd72bd0 100644 --- a/net/ipv4/ip_options.c +++ b/net/ipv4/ip_options.c @@ -604,6 +604,9 @@ void ip_forward_options(struct sk_buff *skb) ip_send_check(ip_hdr(skb)); } } +#ifdef CONFIG_AS_FASTPATH +EXPORT_SYMBOL(ip_forward_options); +#endif int ip_options_rcv_srr(struct sk_buff *skb) { -- cgit v0.10.2