freebsd-dev/lib/libalias
Poul-Henning Kamp a8bc22b47a natd core dumps when -reverse switch is used because of a bug in
libalias.

In /usr/src/lib/libalias/alias.c, the functions LibAliasIn and
LibAliasOutTry call the legacy PacketAliasIn/PacketAliasOut instead
of LibAliasIn/LibAliasOut when the PKT_ALIAS_REVERSE option is set.
In this case, the context variable "la" gets lost because the legacy
compatibility routines expect "la" to be global.  This was obviously
an oversight when rewriting the PacketAlias* functions to the
LibAlias* functions.

The fix (as shown in the patch below) is to remove the legacy
subroutine calls and replace with the new ones using the "la" struct
as the first arg.

Submitted by:	Gil Kloepfer <fgil@kloepfer.org>
Confirmed by:	<nicolai@catpipe.net>
PR:		76839
MFC after:	3 days
2005-04-05 13:04:35 +00:00
..
alias_cuseeme.c Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias_db.c Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias_ftp.c Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias_irc.c Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias_local.h Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias_nbt.c Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias_old.c include "alias.h", not <alias.h> 2005-01-10 10:54:06 +00:00
alias_pptp.c Fix Skinny and PPTP NAT'ing after the introduction of the {ip,tcp,udp}_next 2004-08-04 15:17:08 +00:00
alias_proxy.c Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias_skinny.c Fix a problem in the Skinny ALG where a specially crafted packet could cause 2005-03-03 03:06:37 +00:00
alias_smedia.c Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias_util.c Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an 2004-07-06 12:13:28 +00:00
alias.c natd core dumps when -reverse switch is used because of a bug in 2005-04-05 13:04:35 +00:00
alias.h Make libalias WARNS?=6-clean. This mostly involves renaming variables 2004-07-05 11:10:57 +00:00
HISTORY Add address translation support for RTSP/RTP used by RealPlayer and 2000-07-26 23:15:46 +00:00
libalias.3 Sort sections. 2005-01-20 09:17:07 +00:00
Makefile For variables that are only checked with defined(), don't provide 2004-10-24 15:33:08 +00:00