Resolve conflicts.

This commit is contained in:
Sheldon Hearn 2000-08-10 07:54:33 +00:00
commit 6017865885
4 changed files with 9 additions and 4 deletions

View File

@ -1128,6 +1128,9 @@ ifinit(void)
continue;
if (ifp1->int_dstaddr == RIP_DEFAULT)
continue;
/* ignore aliases on the right network */
if (!strcmp(ifp->int_name, ifp1->int_name))
continue;
if (on_net(ifp->int_dstaddr,
ifp1->int_net, ifp1->int_mask)
|| on_net(ifp1->int_dstaddr,

View File

@ -223,7 +223,7 @@ main(int argc,
case 'v':
/* display version */
verbose++;
msglog("version 2.21");
msglog("version 2.22");
break;
default:

View File

@ -41,7 +41,7 @@
#if !defined(sgi) && !defined(__NetBSD__)
static char sccsid[] __attribute__((unused)) = "@(#)rdisc.c 8.1 (Berkeley) x/y/95";
#elif defined(__NetBSD__)
__RCSID"$NetBSD$");
__RCSID("$NetBSD$");
#endif
#ident "$FreeBSD$"

View File

@ -639,16 +639,18 @@ rtm_type_name(u_char type)
"RTM_NEWMADDR",
"RTM_DELMADDR"
};
static char name0[NAME0_LEN];
#define NEW_RTM_PAT "RTM type %#x"
static char name0[sizeof(NEW_RTM_PAT)+2];
if (type > sizeof(rtm_types)/sizeof(rtm_types[0])
|| type == 0) {
snprintf(name0, NAME0_LEN, "RTM type %#x", type);
snprintf(name0, sizeof(name0), NEW_RTM_PAT, type);
return name0;
} else {
return rtm_types[type-1];
}
#undef NEW_RTM_PAT
}