[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: HI



On Mon, 31 May 1999, shobhan wrote:

>       Is it possible to send a frame by using the following setup
> 
>     sockid = socket(AF_INET,SOCK_RAW,IPROTO_IP);
> 
>     Can I able send ethernet frames by using the following socket.  I

Nope AFAIK with SOCK_RAW, you would be able to send IP packets, but not
ethernet frame. Socket with SOCK_RAW will just pass on the whole buffer
you are writing, so you would be able to frame ur own IP packet, and rest
of the stuff(ie framing ethernet frame) from that point is taken up by the
kernel.
Hope I am clear

- -Chetan S
_______________
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself.  Therefore all
progress depends on the unreasonable man.
                -- George Bernard Shaw



- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
To unsubscribe from this list send an email to majordomo@xxxxxxxxx with the
words 'unsubscribe linux-india' (without the quotes) in the body of the
email.

------------------------------