Date: Mon, 9 Dec 2002 09:28:14 +0200 From: Peter Pentchev <roam@ringlet.net> To: soheil soheil <soheil_hh@hotmail.com> Cc: freebsd-net@freebsd.org Subject: Re: Spoofing Another Host Packet From User Land Message-ID: <20021209072814.GA372@straylight.oblivion.bg> In-Reply-To: <F55xXMCVjTE4MswoZf400000cb1@hotmail.com> References: <F55xXMCVjTE4MswoZf400000cb1@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--oyUTqETQ0mS9luUI Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 09, 2002 at 05:18:28AM +0000, soheil soheil wrote: > Dear All > I want to know if i can use SOCK_RAW to create and send another Host ( wi= th=20 > another IP) Packet from my box. Sayin' in another way , i want to know if= =20 > the kernel fill the ip:ip_src field of the packet throw out by SOCK_RAW ? > if i can not do this by raw socket how can i do that ? > THANX I'd suggest you take a look at the net/libnet port, and either use it, or check how it does things. I believe you have to at least set the IP_HDRINCL socket option on the raw socket. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I had to translate this sentence into English because I could not read the = original Sanskrit. --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE99EYO7Ri2jRYZRVMRAsOxAKCh7ubTWbrWijbz48tRKx8s7KFtIwCeKQLb 4L4uP9iFfNEplBqsm3/msLE= =zhXF -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI-- 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?20021209072814.GA372>