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 ( 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 ? > 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 -- Peter Pentchev [EMAIL PROTECTED] [EMAIL PROTECTED] 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.
msg07824/pgp00000.pgp
Description: PGP signature