Module Name: src
Committed By: martin
Date: Tue Jul 10 15:31:33 UTC 2018
Modified Files:
src/sys/net [netbsd-8]: if_llatbl.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.18.6.5 -r1.18.6.6 src/sys/net/if_llatbl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_llatbl.c
diff -u src/sys/net/if_llatbl.c:1.18.6.5 src/sys/net/if_llatbl.c:1.18.6.6
--- src/sys/net/if_llatbl.c:1.18.6.5 Tue Jul 10 14:41:31 2018
+++ src/sys/net/if_llatbl.c Tue Jul 10 15:31:33 2018
@@ -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 @@ lla_rt_output(const u_char rtm_type, con
*/
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);