summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-25 21:40:43 +0000
committerMiles Bader <miles@gnu.org>1996-06-25 21:40:43 +0000
commit652e7ee9f5fcc100fedb4af3eb38ee290a54ccca (patch)
tree5c071aae7d1b5250b8b7e038038195699ee06d81
parent8591a1e32eb9ed0a453829146a27b6a0a745e8d0 (diff)
(ip_rt_del): New function.
(rt_del): Renamed from ip_rt_del. (rt_kill): Call rt_del, not ip_rt_del.
-rw-r--r--pfinet/linux-inet/route.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/pfinet/linux-inet/route.c b/pfinet/linux-inet/route.c
index 97127908..ce06dcfe 100644
--- a/pfinet/linux-inet/route.c
+++ b/pfinet/linux-inet/route.c
@@ -68,7 +68,7 @@ static struct rtable *rt_loopback = NULL;
* Remove a routing table entry.
*/
-void ip_rt_del(unsigned long dst, char *devname)
+static void rt_del(unsigned long dst, char *devname)
{
struct rtable *r, **rp;
unsigned long flags;
@@ -341,6 +341,16 @@ void ip_rt_add(short flags, unsigned long dst, unsigned long mask,
return;
}
+/*
+ * Remove a routing table entry (exported version).
+ */
+void ip_rt_del (unsigned long dst, struct device *dev)
+{
+ /* Should probably just copy contents of rt_del and replace name
+ comparison with device comparsion. */
+ rt_del (dst, dev->name);
+}
+
/*
* Check if a mask is acceptable.
@@ -482,7 +492,7 @@ static int rt_kill(struct rtentry *r)
if (err)
return err;
}
- ip_rt_del(trg->sin_addr.s_addr, devname);
+ rt_del(trg->sin_addr.s_addr, devname);
if ( devname != NULL )
putname(devname);
return 0;