diff options
author | fenner <fenner@FreeBSD.org> | 1996-07-10 01:34:36 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1996-07-10 01:34:36 +0000 |
commit | eed58203acaa9a77d075817f01ace989e38b3754 (patch) | |
tree | 9b9c0d7256a9bcecd941d6e0be1caa8d73d761aa /sys/net/rtsock.c | |
parent | af327615af4f875c98b372a03590eacd7d2b1e42 (diff) | |
download | FreeBSD-src-eed58203acaa9a77d075817f01ace989e38b3754.zip FreeBSD-src-eed58203acaa9a77d075817f01ace989e38b3754.tar.gz |
Disallow host routes that point to themselves. These routes serve no
purpose, other than to get in the way of the ARP table and cause
"can't allocate llinfo" errors.
This change may cause gated or routed to start complaining when adding
such routes. If so, these programs will need to be fixed to not try
to add these routes.
Reviewed by: wollman
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r-- | sys/net/rtsock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index b6b3e3b..c0491e5 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)rtsock.c 8.5 (Berkeley) 11/2/94 - * $Id: rtsock.c,v 1.18 1996/03/11 15:13:07 davidg Exp $ + * $Id: rtsock.c,v 1.19 1996/05/08 04:28:54 gpalmer Exp $ */ #include <sys/param.h> @@ -261,8 +261,8 @@ route_output(m, so) break; case RTM_CHANGE: - if (gate && rt_setgate(rt, rt_key(rt), gate)) - senderr(EDQUOT); + if (gate && (error = rt_setgate(rt, rt_key(rt), gate))) + senderr(error); /* * If they tried to change things but didn't specify |