Bruno Randolf wrote:

> anyhow, i don't really understand the concept of the iovec struct of
> recvmsg. why would i want to have a buffer array for the one ethernet-frame
> i can receive at a time?

So that you can store different parts of the packet in different
buffers.

> this is the code with recvfrom:
> 
> while (1) /* forever */
> {
>       len = recvfrom( s, buff, ETH_FRAME_LEN, 0, &sa, &salen ); 

Have you initialised `salen'?

-- 
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to