Regards,
Fengkai

From: openflow-discuss [mailto:openflow-discuss-boun...@mailman.stanford.edu] 
On Behalf Of Rushit Parekh
Sent: Tuesday, April 15, 2014 1:48 PM
To: openflow-disc...@mailman.stanford.edu
Subject: [openflow-discuss] Flow of openflow ..


Hello,
 i am confuse in flow of openflow, can any one help me understand

In Openflow floder if we look we have some folder..
>openflow\controller\ -> controller.c
>lib\ -> rconn.c , vconn.c ,netlink.c , netdev.c , vconn_ssl.c , vocnn_stream.c


if we look at controller.c
---------------------------------------------------------------------------
line 218 ..static do_switching(struct switch *sw)
{
unsigned int packets_sent;
struct ofpbuf *msg;

packets_sent = rconn_packets_sent(sw->rconn);// counts packet is sent

msg = rconn_recv(sw->rconn); // recvs msg.. rocnn_recv from rconn.c
if (msg) {
lswitch_process_packet(sw->lswitch, sw->rconn, msg);
ofpbuf_delete(msg);
}
rconn_run(sw->rconn);

return (!rconn_is_alive(sw->rconn) ? EOF
: rconn_packets_sent(sw->rconn) != packets_sent ? 0
: EAGAIN);
}
-------------------------------------------------------------------------
now in rconn.c for rconn_recv line 474 rconn_recv function is defined it calles 
vconn_recv
so in vconn.c there is vocnn_recv function defined at line 460 that call for 
do_recv which is defined on line 470..
but at line num 475

>retval = (vconn->class->recv)(vconn, msgp);

written so.. we need to find struct vconn, its object class and.. that class is 
having function 'recv'


where is that "recv" is defined..? i am not getting exactly process
[Fengkai] This is a system call. You can refer to the manpages for recv.


**********************************************************************
and. .. difference between netlink.c and netdev.c
netlink.c uses family AF_NETLINK
nedev.c uses family PF_PACKET
what is difference between them
[Fengkai] Refer to the manpages for system call “socket“.


*********************************************************
when openflow will use vconn_stream.c , vconn_ssl.c??
--

With Regards,

Rushit Parekh
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to