summaryrefslogtreecommitdiffstats
path: root/sys/netinet/libalias
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-05-05 21:53:17 +0000
committerglebius <glebius@FreeBSD.org>2005-05-05 21:53:17 +0000
commit98fced80c8008d43bfcd12915eaeebcedfa944ee (patch)
treee7d681fe74a3a4ac3160bbffe5d68c814b89f6bc /sys/netinet/libalias
parentfa23219cf28bf399108802efb71595016490a475 (diff)
downloadFreeBSD-src-98fced80c8008d43bfcd12915eaeebcedfa944ee.zip
FreeBSD-src-98fced80c8008d43bfcd12915eaeebcedfa944ee.tar.gz
When used in kernel define NO_FW_PUNCH, NO_LOGGING, NO_USE_SOCKETS.
Diffstat (limited to 'sys/netinet/libalias')
-rw-r--r--sys/netinet/libalias/alias.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netinet/libalias/alias.h b/sys/netinet/libalias/alias.h
index a5be65e..2c50943 100644
--- a/sys/netinet/libalias/alias.h
+++ b/sys/netinet/libalias/alias.h
@@ -39,6 +39,15 @@
#ifndef _ALIAS_H_
#define _ALIAS_H_
+#ifdef _KERNEL
+/*
+ * The kernel version of libalias does not support these features.
+ */
+#define NO_FW_PUNCH
+#define NO_LOGGING
+#define NO_USE_SOCKETS
+#endif
+
/*
* The external interface to libalias, the packet aliasing engine.
*
OpenPOWER on IntegriCloud