Hello.
vaishnavi kidambi wrote:
> i am raw socket programming and i am havin problems constructing ip
> packets, inspite of giving the
>
> int on = 1;
>
> setsockopt(sock,SOL_SOCKET,IP_HDRINCL,(char*)&on,sizeof(on));
>
> and filling up the ip header i am unable to send the packet. i am using
> windows 2000 advanced server as the operating system . Is it b'coz of the os
> i am unable to construct and send the packet.but if i set on =0 , i am able
> to send the packet, but my primary objective is to construct ip packets, can
> someone please help me with this.
What user are you trying this as? I think you have to be Administrator or a
user that has priveledges to use raw sockets.
Please note that this mailing list isn't about socket programming in general.
It's about libsocket, a BSD sockets library for DJGPP. You would be better off
asking in the Winsock newsgroup or reading the Winsock Programmer's FAQ.
Regards,
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]