aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/libalias
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-07-01 17:51:48 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-07-01 17:51:48 +0000
commitc9a246418db48f9a73d8984e79ea514800a8073a (patch)
tree549f124af3dd50bf57d2a2a9e086882e3d15edab /sys/netinet/libalias
parenta4da0c4b6bf42dea8a45cb3c952da29edc027bb7 (diff)
downloadsrc-c9a246418db48f9a73d8984e79ea514800a8073a.tar.gz
src-c9a246418db48f9a73d8984e79ea514800a8073a.zip
Bumped document date.
Fixed markup. Fixed examples to match the new API.
Notes
Notes: svn path=/head/; revision=131420
Diffstat (limited to 'sys/netinet/libalias')
-rw-r--r--sys/netinet/libalias/libalias.312
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/netinet/libalias/libalias.3 b/sys/netinet/libalias/libalias.3
index fc58e9a4613d..7a582dba6f1c 100644
--- a/sys/netinet/libalias/libalias.3
+++ b/sys/netinet/libalias/libalias.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 13, 2000
+.Dd January 17, 2004
.Dt LIBALIAS 3
.Os
.Sh NAME
@@ -82,7 +82,9 @@ customized by calling
.Bd -ragged -offset indent
This function is used to initialize
internal data structures.
-When called first time a NULL pointer should be passed as argument.
+When called the first time, a
+.Dv NULL
+pointer should be passed as an argument.
The following mode bits are always set after calling
.Fn LibAliasInit .
See the description of
@@ -488,11 +490,11 @@ New traffic generated by any of the local machines, designated in the
several function calls, will be aliased to the same address.
Consider the following example:
.Bd -literal -offset indent
-LibAliasRedirectAddr(inet_aton("192.168.0.2"),
+LibAliasRedirectAddr(la, inet_aton("192.168.0.2"),
inet_aton("141.221.254.101"));
-LibAliasRedirectAddr(inet_aton("192.168.0.3"),
+LibAliasRedirectAddr(la, inet_aton("192.168.0.3"),
inet_aton("141.221.254.101"));
-LibAliasRedirectAddr(inet_aton("192.168.0.4"),
+LibAliasRedirectAddr(la, inet_aton("192.168.0.4"),
inet_aton("141.221.254.101"));
.Ed
.Pp