aboutsummaryrefslogtreecommitdiff
path: root/lib/libalias
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-04-05 14:23:42 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-04-05 14:23:42 +0000
commit79eef4b6112b0e34ccb2fce4c30ac1206a05dda5 (patch)
treeef42f2ce96626348a5cebf6e5a8770de690a7586 /lib/libalias
parent44b20bdb1387a07f1ba837fa34fce1a08e520ba3 (diff)
downloadsrc-79eef4b6112b0e34ccb2fce4c30ac1206a05dda5.tar.gz
src-79eef4b6112b0e34ccb2fce4c30ac1206a05dda5.zip
- Moved NULL definition into private include file.
- Minor spelling fixes.
Notes
Notes: svn path=/head/; revision=59046
Diffstat (limited to 'lib/libalias')
-rw-r--r--lib/libalias/alias.h10
-rw-r--r--lib/libalias/alias_local.h3
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/libalias/alias.h b/lib/libalias/alias.h
index 063f1bcfc843..aa43b2e8dd9b 100644
--- a/lib/libalias/alias.h
+++ b/lib/libalias/alias.h
@@ -14,10 +14,6 @@
#ifndef _ALIAS_H_
#define _ALIAS_H_
-#ifndef NULL
-#define NULL 0
-#endif
-
/* Alias link representative (incomplete struct) */
struct alias_link;
@@ -92,7 +88,7 @@ struct alias_link;
/********************** Mode flags ********************/
-/* Set these flags using SetPacketAliasMode() */
+/* Set these flags using PacketAliasSetMode() */
/* If PKT_ALIAS_LOG is set, a message will be printed to
/var/log/alias.log every time a link is created or deleted. This
@@ -105,7 +101,7 @@ struct alias_link;
#define PKT_ALIAS_DENY_INCOMING 0x02
/* If PKT_ALIAS_SAME_PORTS is set, packets will be attempted sent from
- the same port as they originated on. This allows eg rsh to work
+ the same port as they originated on. This allows e.g. rsh to work
*99% of the time*, but _not_ 100%. (It will be slightly flakey
instead of not working at all.) This mode bit is set by
PacketAliasInit(), so it is a default mode of operation. */
@@ -120,7 +116,7 @@ struct alias_link;
mode of operation.*/
#define PKT_ALIAS_USE_SOCKETS 0x08
-/* If PKT_ALIAS_UNREGISTERED_ONLY is set, then only packets with with
+/* If PKT_ALIAS_UNREGISTERED_ONLY is set, then only packets with
unregistered source addresses will be aliased (along with those
of the ppp host maching itself. Private addresses are those
in the following ranges:
diff --git a/lib/libalias/alias_local.h b/lib/libalias/alias_local.h
index 6b4389c8ee39..805ca87b1452 100644
--- a/lib/libalias/alias_local.h
+++ b/lib/libalias/alias_local.h
@@ -19,6 +19,9 @@
#ifndef ALIAS_LOCAL_H
#define ALIAS_LOCAL_H
+#ifndef NULL
+#define NULL 0
+#endif
/*
Macros