diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-12-18 16:13:45 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-12-18 16:13:45 +0000 |
| commit | 4aa5d00e3d05b2e200cbbf060ba217f03c259008 (patch) | |
| tree | a0981b43d850b1db665faf11da05c03166a762c9 /lib/libalias/alias.c | |
| parent | 60c3e0f72a4878382987bb08a33a517c0700e28d (diff) | |
Notes
Diffstat (limited to 'lib/libalias/alias.c')
| -rw-r--r-- | lib/libalias/alias.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalias/alias.c b/lib/libalias/alias.c index 154cf4e88a8b..320c5c287a4b 100644 --- a/lib/libalias/alias.c +++ b/lib/libalias/alias.c @@ -1058,12 +1058,14 @@ TcpAliasOut(struct ip *pip, int maxpacketsize) u_short *sptr; /* Save original destination address, if this is a proxy packet. - Also modify packet to include destination encoding. */ + Also modify packet to include destination encoding. This may + change the size of IP header. */ if (proxy_type != 0) { SetProxyPort(link, dest_port); SetProxyAddress(link, dest_address); ProxyModify(link, pip, maxpacketsize, proxy_type); + tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2)); } /* Get alias address and port */ |
