patch-2.4.21 linux-2.4.21/net/ipv6/ip6_output.c
Next file: linux-2.4.21/net/ipv6/ipv6_sockglue.c
Previous file: linux-2.4.21/net/ipv6/ip6_fib.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
2003-06-13 07:51:39.000000000 -0700
- Orig file:
linux-2.4.20/net/ipv6/ip6_output.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/net/ipv6/ip6_output.c linux-2.4.21/net/ipv6/ip6_output.c
@@ -132,7 +132,7 @@
#ifdef CONFIG_NETFILTER
-static int route6_me_harder(struct sk_buff *skb)
+int ip6_route_me_harder(struct sk_buff *skb)
{
struct ipv6hdr *iph = skb->nh.ipv6h;
struct dst_entry *dst;
@@ -150,7 +150,8 @@
if (dst->error) {
if (net_ratelimit())
- printk(KERN_DEBUG "route6_me_harder: No more route.\n");
+ printk(KERN_DEBUG "ip6_route_me_harder: No more route.\n");
+ dst_release(dst);
return -EINVAL;
}
@@ -166,7 +167,7 @@
{
#ifdef CONFIG_NETFILTER
if (skb->nfcache & NFC_ALTERED){
- if (route6_me_harder(skb) != 0){
+ if (ip6_route_me_harder(skb) != 0){
kfree_skb(skb);
return -EINVAL;
}
@@ -545,7 +546,7 @@
|| (fl->oif && fl->oif != dst->dev->ifindex)) {
dst = NULL;
} else
- dst_clone(dst);
+ dst_hold(dst);
}
if (dst == NULL)
@@ -563,7 +564,7 @@
if (err) {
#if IP6_DEBUG >= 2
printk(KERN_DEBUG "ip6_build_xmit: "
- "no availiable source address\n");
+ "no available source address\n");
#endif
goto out;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)