From 652e7ee9f5fcc100fedb4af3eb38ee290a54ccca Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 25 Jun 1996 21:40:43 +0000 Subject: (ip_rt_del): New function. (rt_del): Renamed from ip_rt_del. (rt_kill): Call rt_del, not ip_rt_del. --- pfinet/linux-inet/route.c | 14 ++++++++++++-- 1 file 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; -- cgit v1.2.3