Date: Wed, 27 Nov 1996 20:00:24 -0800 (PST) From: Bill Fenner <fenner> To: hackers Cc: mrcpu@cdsnet.net Subject: Re: RTM_LOSING w/o gateway? Message-ID: <199611280400.UAA03707@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
These messages are logging a situation that routed shouldn't care about.
Try this patch.
Bill
Index: table.c
===================================================================
RCS file: /home/ncvs/src/sbin/routed/table.c,v
retrieving revision 1.3
diff -u -r1.3 table.c
--- table.c 1996/11/19 20:42:21 1.3
+++ table.c 1996/11/28 03:59:46
@@ -914,12 +914,13 @@
rtm_lose(struct rt_msghdr *rtm,
struct rt_addrinfo *info)
{
- if (INFO_GATE(info) == 0
- || INFO_GATE(info)->sa_family != AF_INET) {
+ if (INFO_GATE(info) == 0) {
msglog("ignore %s without gateway",
rtm_type_name(rtm->rtm_type));
return;
}
+ if (INFO_GATE(info)->sa_family != AF_INET)
+ return;
if (!supplier)
rdisc_age(S_ADDR(INFO_GATE(info)));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611280400.UAA03707>
