Unbreak natd.

Reported and submitted by:	Sean McNeil (sean at mcneil.com)
This commit is contained in:
Daniel Eischen 2004-04-02 17:57:57 +00:00
parent 67de8ecbf8
commit ab39bc9a92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127757
2 changed files with 2 additions and 0 deletions

View File

@ -884,6 +884,7 @@ TcpAliasIn(struct libalias *la, struct ip *pip)
/* Restore original IP address */
accumulate = twowords(&pip->ip_dst);
pip->ip_dst = original_address;
accumulate -= twowords(&pip->ip_dst);
/* If this is a transparent proxy packet, then modify the source

View File

@ -884,6 +884,7 @@ TcpAliasIn(struct libalias *la, struct ip *pip)
/* Restore original IP address */
accumulate = twowords(&pip->ip_dst);
pip->ip_dst = original_address;
accumulate -= twowords(&pip->ip_dst);
/* If this is a transparent proxy packet, then modify the source