libalias.3 (116314) | libalias.3 (119893) |
---|---|
1.\"- 2.\" Copyright (c) 2001 Charles Mott <cm@linktel.net> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" | 1.\"- 2.\" Copyright (c) 2001 Charles Mott <cm@linktel.net> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" |
26.\" $FreeBSD: head/sys/netinet/libalias/libalias.3 116314 2003-06-13 21:39:22Z ru $ | 26.\" $FreeBSD: head/sys/netinet/libalias/libalias.3 119893 2003-09-08 19:57:22Z ru $ |
27.\" 28.Dd April 13, 2000 29.Dt LIBALIAS 3 30.Os 31.Sh NAME 32.Nm libalias 33.Nd packet aliasing library for masquerading and network address translation 34.Sh SYNOPSIS --- 122 unchanged lines hidden (view full) --- 157.Bd -ragged -offset indent 158This function sets or clears mode bits 159according to the value of 160.Fa flags . 161Only bits marked in 162.Fa mask 163are affected. 164The following mode bits are defined in | 27.\" 28.Dd April 13, 2000 29.Dt LIBALIAS 3 30.Os 31.Sh NAME 32.Nm libalias 33.Nd packet aliasing library for masquerading and network address translation 34.Sh SYNOPSIS --- 122 unchanged lines hidden (view full) --- 157.Bd -ragged -offset indent 158This function sets or clears mode bits 159according to the value of 160.Fa flags . 161Only bits marked in 162.Fa mask 163are affected. 164The following mode bits are defined in |
165.Aq Pa alias.h : | 165.In alias.h : |
166.Bl -tag -width indent 167.It Dv PKT_ALIAS_LOG 168Enables logging into 169.Pa /var/log/alias.log . 170Each time an aliasing link is created or deleted, the log file is appended 171with the current number of ICMP, TCP and UDP links. 172Mainly useful for debugging when the log file is viewed continuously with 173.Xr tail 1 . --- 199 unchanged lines hidden (view full) --- 373an alias address/port be redirected to a specified local address/port. 374The parameter 375.Fa proto 376can be either 377.Dv IPPROTO_TCP 378or 379.Dv IPPROTO_UDP , 380as defined in | 166.Bl -tag -width indent 167.It Dv PKT_ALIAS_LOG 168Enables logging into 169.Pa /var/log/alias.log . 170Each time an aliasing link is created or deleted, the log file is appended 171with the current number of ICMP, TCP and UDP links. 172Mainly useful for debugging when the log file is viewed continuously with 173.Xr tail 1 . --- 199 unchanged lines hidden (view full) --- 373an alias address/port be redirected to a specified local address/port. 374The parameter 375.Fa proto 376can be either 377.Dv IPPROTO_TCP 378or 379.Dv IPPROTO_UDP , 380as defined in |
381.Aq Pa netinet/in.h . | 381.In netinet/in.h . |
382.Pp 383If 384.Fa local_addr 385or 386.Fa alias_addr 387is zero, this indicates that the packet aliasing address as established 388by 389.Fn PacketAliasSetAddress --- 612 unchanged lines hidden --- | 382.Pp 383If 384.Fa local_addr 385or 386.Fa alias_addr 387is zero, this indicates that the packet aliasing address as established 388by 389.Fn PacketAliasSetAddress --- 612 unchanged lines hidden --- |