Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2002 09:43:54 -0500 (EST)
From:      Robert Watson <rwatson@freebsd.org>
To:        soheil soheil <soheil_hh@hotmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Spoofing Another Host Packet From User Land
Message-ID:  <Pine.NEB.3.96L.1021209094052.60422V-100000@fledge.watson.org>
In-Reply-To: <F55xXMCVjTE4MswoZf400000cb1@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 9 Dec 2002, soheil soheil wrote:

> I want to know if i can use SOCK_RAW to create and send another Host (
> with another IP) Packet from my box. Sayin' in another way , i want to
> know if 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 ? 

The ip(4) man page has a description of IP raw sockets in detail; the
socket option you're interested in is IP_HDRINCL.  You may want to dig up
one of the network programming books by Stevens to find out more about low
level network programming.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories



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?Pine.NEB.3.96L.1021209094052.60422V-100000>