Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2012 04:02:52 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232763 - head/sys/dev/wtap
Message-ID:  <201203100402.q2A42qwA038830@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat Mar 10 04:02:52 2012
New Revision: 232763
URL: http://svn.freebsd.org/changeset/base/232763

Log:
  Enforce that wtap requires VIMAGE to be useful.

Modified:
  head/sys/dev/wtap/if_wtap.c

Modified: head/sys/dev/wtap/if_wtap.c
==============================================================================
--- head/sys/dev/wtap/if_wtap.c	Sat Mar 10 02:58:15 2012	(r232762)
+++ head/sys/dev/wtap/if_wtap.c	Sat Mar 10 04:02:52 2012	(r232763)
@@ -40,6 +40,13 @@
 #include <net80211/ieee80211_ratectl.h>
 #include "if_medium.h"
 
+/*
+ * This _requires_ vimage to be useful.
+ */
+#ifndef	VIMAGE
+#error	if_wtap requires VIMAGE.
+#endif	/* VIMAGE */
+
 /* device for IOCTL and read/write for debuggin purposes */
 /* Function prototypes */
 static	d_open_t	wtap_node_open;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203100402.q2A42qwA038830>