In the PKT_ALIAS_PROXY_ONLY mode, make sure to preserve the
original source IP address, as promised in the manual page. Spotted by: Vaclav Petricek
This commit is contained in:
parent
9c88dc8855
commit
ada24e690c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116315
@ -1425,6 +1425,10 @@ PacketAliasOut(char *ptr, /* valid IP packet */
|
||||
SetDefaultAliasAddress(pip->ip_src);
|
||||
}
|
||||
}
|
||||
else if (packetAliasMode & PKT_ALIAS_PROXY_ONLY)
|
||||
{
|
||||
SetDefaultAliasAddress(pip->ip_src);
|
||||
}
|
||||
|
||||
iresult = PKT_ALIAS_IGNORED;
|
||||
if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0)
|
||||
|
@ -1425,6 +1425,10 @@ PacketAliasOut(char *ptr, /* valid IP packet */
|
||||
SetDefaultAliasAddress(pip->ip_src);
|
||||
}
|
||||
}
|
||||
else if (packetAliasMode & PKT_ALIAS_PROXY_ONLY)
|
||||
{
|
||||
SetDefaultAliasAddress(pip->ip_src);
|
||||
}
|
||||
|
||||
iresult = PKT_ALIAS_IGNORED;
|
||||
if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user