From owner-freebsd-net Sun Dec 8 23:28:47 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EE0037B401 for ; Sun, 8 Dec 2002 23:28:46 -0800 (PST) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id 740EF43EA9 for ; Sun, 8 Dec 2002 23:28:42 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 2752 invoked by uid 1000); 9 Dec 2002 07:28:15 -0000 Date: Mon, 9 Dec 2002 09:28:14 +0200 From: Peter Pentchev To: soheil soheil Cc: freebsd-net@freebsd.org Subject: Re: Spoofing Another Host Packet From User Land Message-ID: <20021209072814.GA372@straylight.oblivion.bg> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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