avinash varma wrote:
> hi
> One more query
> fc_fcoe_send calls *sendmsg(fcoe->fc_fd, &msg, 0) *to send fcoe frame
> here fd (ethernet file descriptor) has been initialised in
> fc_fcoe_create using function *sa_packet_open* which uses *socket*
> system call .
> What does this system call do?
It opens a socket, in this case it opens one to send RAW ethernet frames.
That first arg to sendmsg is the value returned from socket() that tells
sendmsg which interface and protocol to use to send the frame.
See the man pages.
> In gPXE we have netdev_tx which transfers the iob over the ethernet
> using structure 'netdev' which holds our network device
> ,can we use this in place of socket?
It sounds like you would use it in place of sendmsg.
You might want to look at the kernel version fcoe, rather than
the user-level stuff, since you're trying to port it into an embedded
environment (gPXE).
Joe
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel