Ignore RTM_OIFINFO messages (send by a COMPAT_14 kernel).
This commit is contained in:
parent
689cdcf64b
commit
a1d8cb9593
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if.c,v 1.17 1999/02/23 10:47:40 christos Exp $ */
|
||||
/* $NetBSD: if.c,v 1.18 1999/11/19 10:46:35 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
static char sccsid[] __attribute__((unused)) = "@(#)if.c 8.1 (Berkeley) 6/5/93";
|
||||
#elif defined(__NetBSD__)
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: if.c,v 1.17 1999/02/23 10:47:40 christos Exp $");
|
||||
__RCSID("$NetBSD: if.c,v 1.18 1999/11/19 10:46:35 bouyer Exp $");
|
||||
#endif
|
||||
|
||||
#include "defs.h"
|
||||
|
@ -737,6 +737,11 @@ ifinit(void)
|
|||
|
||||
ifam2 = (struct ifa_msghdr*)((char*)ifam + ifam->ifam_msglen);
|
||||
|
||||
#ifdef RTM_OIFINFO
|
||||
if (ifam->ifam_type == RTM_OIFINFO) {
|
||||
continue; /* just ignore compat message */
|
||||
}
|
||||
#endif
|
||||
if (ifam->ifam_type == RTM_IFINFO) {
|
||||
struct sockaddr_dl *sdl;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: table.c,v 1.10 1999/02/25 11:03:22 ross Exp $ */
|
||||
/* $NetBSD: table.c,v 1.11 1999/11/19 10:46:35 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
static char sccsid[] __attribute__((unused)) = "@(#)tables.c 8.1 (Berkeley) 6/5/93";
|
||||
#elif defined(__NetBSD__)
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: table.c,v 1.10 1999/02/25 11:03:22 ross Exp $");
|
||||
__RCSID("$NetBSD: table.c,v 1.11 1999/11/19 10:46:35 bouyer Exp $");
|
||||
#endif
|
||||
|
||||
#include "defs.h"
|
||||
|
@ -634,6 +634,9 @@ rtm_type_name(u_char type)
|
|||
"RTM_RESOLVE",
|
||||
"RTM_NEWADDR",
|
||||
"RTM_DELADDR",
|
||||
#ifdef RTM_OIFINFO
|
||||
"RTM_OIFINFO",
|
||||
#endif
|
||||
"RTM_IFINFO"
|
||||
};
|
||||
static char name0[10];
|
||||
|
@ -1218,6 +1221,11 @@ read_rt(void)
|
|||
ifinit_timer.tv_sec = now.tv_sec;
|
||||
continue;
|
||||
}
|
||||
#ifdef RTM_OIFINFO
|
||||
if (m.r.rtm.rtm_type == RTM_OIFINFO) {
|
||||
continue; /* ignore compat message */
|
||||
}
|
||||
#endif
|
||||
|
||||
strcpy(str, rtm_type_name(m.r.rtm.rtm_type));
|
||||
strp = &str[strlen(str)];
|
||||
|
|
Loading…
Reference in New Issue