soheil soheil wrote:
Hi there
I want to know if i change the dst ip addr. of a packet the socket sent
sys call won't change it, will it ?
in other words will the divert socket type change the ip address itself ?
Huh? The process at the other end of the divert socket may rewrite
any part of it. natd may change the dst address and recalculate
the checksum. For ICMP error packets, it even rewrites the address
of the included offending packet. You'd better correct the checksum
if you mess with any part of the header (or contents, in the case
of tcp).
See /usr/src/sbin/natd for code examples.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message