Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet protect arplog with INET



details:   https://anonhg.NetBSD.org/src/rev/3a5dafddfb35
branches:  trunk
changeset: 817948:3a5dafddfb35
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 17 02:37:59 2016 +0000

description:
protect arplog with INET

diffstat:

 sys/netinet/in_var.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 197db329e140 -r 3a5dafddfb35 sys/netinet/in_var.h
--- a/sys/netinet/in_var.h      Sat Sep 17 02:29:11 2016 +0000
+++ b/sys/netinet/in_var.h      Sat Sep 17 02:37:59 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_var.h,v 1.83 2016/09/16 14:17:23 roy Exp $  */
+/*     $NetBSD: in_var.h,v 1.84 2016/09/17 02:37:59 christos Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -378,9 +378,13 @@
 extern pktqueue_t *ip_pktq;
 
 extern int ip_dad_count;               /* Duplicate Address Detection probes */
+#ifdef INET
 extern int arp_debug;
 #define arplog(level, fmt, args...) \
        do { if (arp_debug) log(level, "%s: " fmt, __func__, ##args);} while (0)
+#else
+#define arplog(level, fmt, args...)
+#endif
 
 /*
  * Structure used by functions below to remember position when stepping



Home | Main Index | Thread Index | Old Index