aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/wtap/Makefile
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2012-01-11 17:41:14 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2012-01-11 17:41:14 +0000
commit04d198028975d9b9fa18d64f2be53aca08f07259 (patch)
tree7f7c7c0180b398b10772df243c0b194d815d8f51 /sys/modules/wtap/Makefile
parent136cb2223f8179c714ac46804f77bcbb1729cc05 (diff)
downloadsrc-04d198028975d9b9fa18d64f2be53aca08f07259.tar.gz
src-04d198028975d9b9fa18d64f2be53aca08f07259.zip
Introduce wtap, the beginnings of a net80211 wlan simulator.
This introduces: * a basic wtap interface * a HAL, which implements an abstraction layer for implementing different device behavious; * A visibility plugin, which allows for control over which nodes see other nodes (useful for mesh work.) It doesn't yet implement sta/adhoc/hostap modes but these are quite feasible to implement. Monthadar uses it to do 802.11s mesh verification. The userland tools will be committed in a follow-up commit. Submitted by: Monthadar Al Jaberi <monthadar@gmail.com>
Notes
Notes: svn path=/head/; revision=229970
Diffstat (limited to 'sys/modules/wtap/Makefile')
-rw-r--r--sys/modules/wtap/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/modules/wtap/Makefile b/sys/modules/wtap/Makefile
new file mode 100644
index 000000000000..b9e8827e23d9
--- /dev/null
+++ b/sys/modules/wtap/Makefile
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/wtap
+
+# Declare Name of kernel module
+KMOD = wtap
+
+# Enumerate Source files for kernel module
+SRCS = if_wtap_module.c if_wtap.c if_medium.c
+
+.PATH: ${.CURDIR}/../../dev/wtap/wtap_hal
+SRCS += hal.c
+
+.PATH: ${.CURDIR}/../../dev/wtap/plugins
+SRCS += visibility.c
+
+SRCS += opt_global.h
+
+.if defined(KERNBUILDDIR)
+MKDEP= -include ${KERNBUILDDIR}/opt_global.h
+.else
+CFLAGS+= -include opt_global.h
+MKDEP= -include opt_global.h
+
+opt_global.h:
+ echo "#define VIMAGE 1" > ${.TARGET}
+.endif
+
+# Include kernel module makefile
+.include <bsd.kmod.mk>