Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/net Additionally pull up the following, requested by ...



details:   https://anonhg.NetBSD.org/src/rev/1fc35dc8859e
branches:  netbsd-8
changeset: 435105:1fc35dc8859e
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jul 10 15:31:33 2018 +0000

description:
Additionally pull up the following, requested by ozaki-r in ticket #918:

        src/sys/net/if_llatbl.c 1.29

Avoid attempting to call arp related functions if there is no
arp in the kernel.

diffstat:

 sys/net/if_llatbl.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 11df654c0baf -r 1fc35dc8859e sys/net/if_llatbl.c
--- a/sys/net/if_llatbl.c       Tue Jul 10 15:08:33 2018 +0000
+++ b/sys/net/if_llatbl.c       Tue Jul 10 15:31:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_llatbl.c,v 1.18.6.5 2018/07/10 14:41:31 martin Exp $        */
+/*     $NetBSD: if_llatbl.c,v 1.18.6.6 2018/07/10 15:31:33 martin Exp $        */
 /*
  * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
  * Copyright (c) 2004-2008 Qing Li. All rights reserved.
@@ -696,10 +696,12 @@
                 */
                if (lle != NULL) {
                        size_t pkts_dropped = llentry_free(lle);
+#if defined(INET) && NARP > 0
                        if (dst->sa_family == AF_INET) {
                                arp_stat_add(ARP_STAT_DFRDROPPED,
                                    (uint64_t)pkts_dropped);
                        }
+#endif
                }
 
                lle = lla_create(llt, 0, dst, rt);



Home | Main Index | Thread Index | Old Index