Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Fixes PR 7489 by Olaf Seibert. Fix by Zdenek Sal...



details:   https://anonhg.NetBSD.org/src/rev/a5ba17279338
branches:  trunk
changeset: 472690:a5ba17279338
user:      is <is%NetBSD.org@localhost>
date:      Tue May 04 20:50:35 1999 +0000

description:
Fixes PR 7489 by Olaf Seibert. Fix by Zdenek Salvet (PR 7497).

diffstat:

 sys/netinet/if_arp.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 1cfce64e68f6 -r a5ba17279338 sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c      Tue May 04 20:20:35 1999 +0000
+++ b/sys/netinet/if_arp.c      Tue May 04 20:50:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arp.c,v 1.57 1999/05/04 14:58:27 is Exp $   */
+/*     $NetBSD: if_arp.c,v 1.58 1999/05/04 20:50:35 is Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -593,7 +593,14 @@
        if (la && (rt = la->la_rt) && (sdl = SDL(rt->rt_gateway))) {
                if (sdl->sdl_alen &&
                    bcmp((caddr_t)ar_sha(ah), LLADDR(sdl), sdl->sdl_alen)) {
-                       if (rt->rt_ifp != ifp) {
+                       if (rt->rt_flags & RTF_STATIC) {
+                               log(LOG_INFO,
+                                   "%s tried to overwrite permanent arp info"
+                                   " for %s\n",
+                                   lla_snprintf(ar_sha(ah), ah->ar_hln),
+                                   in_fmtaddr(isaddr));
+                               goto out;
+                       } else if (rt->rt_ifp != ifp) {
                                log(LOG_INFO,
                                    "%s on %s tried to overwrite "
                                    "arp info for %s on %s\n",



Home | Main Index | Thread Index | Old Index