patch-2.4.17 linux/net/ipv4/ipmr.c
Next file: linux/net/ipv4/netfilter/Config.in
Previous file: linux/net/ipv4/ipconfig.c
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
Fri Dec 21 16:40:33 2001
- Orig file:
linux-2.4.16/net/ipv4/ipmr.c
- Orig date:
Thu Sep 20 21:12:56 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/net/ipv4/ipmr.c linux/net/ipv4/ipmr.c
@@ -9,7 +9,7 @@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
- * Version: $Id: ipmr.c,v 1.64 2001/09/18 22:29:09 davem Exp $
+ * Version: $Id: ipmr.c,v 1.65 2001/10/31 21:55:54 davem Exp $
*
* Fixes:
* Michael Chastain : Incorrect size of copying.
@@ -294,7 +294,6 @@
atomic_dec(&cache_resolve_queue_len);
while((skb=skb_dequeue(&c->mfc_un.unres.unresolved))) {
-#ifdef CONFIG_RTNETLINK
if (skb->nh.iph->version == 0) {
struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr));
nlh->nlmsg_type = NLMSG_ERROR;
@@ -303,7 +302,6 @@
((struct nlmsgerr*)NLMSG_DATA(nlh))->error = -ETIMEDOUT;
netlink_unicast(rtnl, skb, NETLINK_CB(skb).dst_pid, MSG_DONTWAIT);
} else
-#endif
kfree_skb(skb);
}
@@ -501,7 +499,6 @@
*/
while((skb=__skb_dequeue(&uc->mfc_un.unres.unresolved))) {
-#ifdef CONFIG_RTNETLINK
if (skb->nh.iph->version == 0) {
int err;
struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr));
@@ -516,7 +513,6 @@
}
err = netlink_unicast(rtnl, skb, NETLINK_CB(skb).dst_pid, MSG_DONTWAIT);
} else
-#endif
ip_mr_forward(skb, c, 0);
}
}
@@ -1522,8 +1518,6 @@
}
#endif
-#ifdef CONFIG_RTNETLINK
-
static int
ipmr_fill_mroute(struct sk_buff *skb, struct mfc_cache *c, struct rtmsg *rtm)
{
@@ -1598,7 +1592,6 @@
read_unlock(&mrt_lock);
return err;
}
-#endif
#ifdef CONFIG_PROC_FS
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)