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
[EMAIL PROTECTED]      Network Associates Laboratories



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to