libalias.3 (223421) | libalias.3 (223437) |
---|---|
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 223421 2011-06-22 09:55:28Z ae $ | 26.\" $FreeBSD: head/sys/netinet/libalias/libalias.3 223437 2011-06-22 20:00:27Z ae $ |
27.\" 28.Dd June 22, 2011 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 --- 784 unchanged lines hidden (view full) --- 819.Fn LibAliasFragmentIn . 820The 821.Fa header 822argument is the pointer to a header fragment used as a template, and 823.Fa fragment 824is the pointer to the packet to be de-aliased. 825.Ed 826.Sh MISCELLANEOUS FUNCTIONS | 27.\" 28.Dd June 22, 2011 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 --- 784 unchanged lines hidden (view full) --- 819.Fn LibAliasFragmentIn . 820The 821.Fa header 822argument is the pointer to a header fragment used as a template, and 823.Fa fragment 824is the pointer to the packet to be de-aliased. 825.Ed 826.Sh MISCELLANEOUS FUNCTIONS |
827.Ft struct alias_link * 828.Fn AddLink "struct libalias *" "struct in_addr src_addr" "struct in_addr dst_addr" \ 829"struct in_addr alias_addr" "u_short src_port" "u_short dst_port" \ 830"int alias_param" "int link_type" 831.Bd -ragged -offset indent 832This function adds new state to instance hash table. 833Zero can be specified instead of dst_address and/or dst port. 834This makes link partially specified dynamic. 835However due to hashing method such links can be resolved on inbound (ext -> int) only. 836.Ed 837.Pp |
|
827.Ft void 828.Fn LibAliasSetTarget "struct libalias *" "struct in_addr addr" 829.Bd -ragged -offset indent 830When an incoming packet not associated with any pre-existing aliasing link 831arrives at the host machine, it will be sent to the address indicated by a 832call to 833.Fn LibAliasSetTarget . 834.Pp --- 633 unchanged lines hidden --- | 838.Ft void 839.Fn LibAliasSetTarget "struct libalias *" "struct in_addr addr" 840.Bd -ragged -offset indent 841When an incoming packet not associated with any pre-existing aliasing link 842arrives at the host machine, it will be sent to the address indicated by a 843call to 844.Fn LibAliasSetTarget . 845.Pp --- 633 unchanged lines hidden --- |