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 ********************************************************************** 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 ********************************************************* 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