Bumped document date.

Fixed markup.
Fixed examples to match the new API.
This commit is contained in:
Ruslan Ermilov 2004-07-01 17:51:48 +00:00
parent a4da0c4b6b
commit c9a246418d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131420
2 changed files with 14 additions and 10 deletions

View file

@ -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

View file

@ -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