|
@@ -96,7 +96,7 @@ void ip_send_check(struct iphdr *iph)
|
|
|
}
|
|
|
EXPORT_SYMBOL(ip_send_check);
|
|
|
|
|
|
-int __ip_local_out_sk(struct sock *sk, struct sk_buff *skb)
|
|
|
+int __ip_local_out(struct sock *sk, struct sk_buff *skb)
|
|
|
{
|
|
|
struct net *net = dev_net(skb_dst(skb)->dev);
|
|
|
struct iphdr *iph = ip_hdr(skb);
|
|
@@ -108,17 +108,12 @@ int __ip_local_out_sk(struct sock *sk, struct sk_buff *skb)
|
|
|
dst_output);
|
|
|
}
|
|
|
|
|
|
-int __ip_local_out(struct sk_buff *skb)
|
|
|
-{
|
|
|
- return __ip_local_out_sk(skb->sk, skb);
|
|
|
-}
|
|
|
-
|
|
|
int ip_local_out_sk(struct sock *sk, struct sk_buff *skb)
|
|
|
{
|
|
|
struct net *net = dev_net(skb_dst(skb)->dev);
|
|
|
int err;
|
|
|
|
|
|
- err = __ip_local_out_sk(sk, skb);
|
|
|
+ err = __ip_local_out(sk, skb);
|
|
|
if (likely(err == 1))
|
|
|
err = dst_output(net, sk, skb);
|
|
|
|