Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Don't call lltable_purge_entries from in_if_down...



details:   https://anonhg.NetBSD.org/src/rev/0ef67c2ee99e
branches:  trunk
changeset: 829674:0ef67c2ee99e
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Feb 08 10:11:38 2018 +0000

description:
Don't call lltable_purge_entries from in_if_down if ARP isn't enabled

Reported by bouyer@

diffstat:

 sys/netinet/in.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r a958d8888fd6 -r 0ef67c2ee99e sys/netinet/in.c
--- a/sys/netinet/in.c  Thu Feb 08 10:05:54 2018 +0000
+++ b/sys/netinet/in.c  Thu Feb 08 10:11:38 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in.c,v 1.216 2018/01/19 08:01:05 ozaki-r Exp $ */
+/*     $NetBSD: in.c,v 1.217 2018/02/08 10:11:38 ozaki-r Exp $ */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.216 2018/01/19 08:01:05 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.217 2018/02/08 10:11:38 ozaki-r Exp $");
 
 #include "arp.h"
 
@@ -1539,7 +1539,9 @@
 {
 
        in_if_link_down(ifp);
+#if NARP > 0
        lltable_purge_entries(LLTABLE(ifp));
+#endif
 }
 
 void



Home | Main Index | Thread Index | Old Index