Date: Wed, 12 Feb 2003 11:01:33 -0800 From: Michael Sierchio <kudzu@tenebras.com> To: soheil soheil <soheil_hh@hotmail.com> Cc: freebsd-net@freebsd.org Subject: Re: Divert Socket Send Functionality Message-ID: <3E4A9A0D.7090105@tenebras.com> In-Reply-To: <F86bUjQuH1XSbYQ7wAp000068d4@hotmail.com> References: <F86bUjQuH1XSbYQ7wAp000068d4@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E4A9A0D.7090105>