Module Name:    src
Committed By:   christos
Date:           Sat Sep 17 02:37:59 UTC 2016

Modified Files:
        src/sys/netinet: in_var.h

Log Message:
protect arplog with INET


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/netinet/in_var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/in_var.h
diff -u src/sys/netinet/in_var.h:1.83 src/sys/netinet/in_var.h:1.84
--- src/sys/netinet/in_var.h:1.83	Fri Sep 16 10:17:23 2016
+++ src/sys/netinet/in_var.h	Fri Sep 16 22:37:59 2016
@@ -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 @@ struct in_multi {
 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

Reply via email to