[ovs-discuss] newbie question: main function of openvswitch

Ben Pfaff blp at nicira.com
Thu Apr 7 14:06:58 UTC 2011


On Thu, Apr 07, 2011 at 10:51:19AM +0500, Tahir Rauf wrote:
> I am a newbie to openvswitch. As a starting point, I was looking at the
> 'actual' main function of openvswitch. I found around 35 main functions in
> the code (the most of them belongs to 'test'). But there are also many other
> main() functions, like in ovs-appctl.c, ovs-controller.c, ovs-discover.c,
> ovs-dpctl.c, ovs-kill.c, ovs-ofctl.c, ovs-brcompatd.c and ovs-vswitchd.c. I
> am wondering that which one of them is actual main() function.
> Any help will be appreciated. Thanks in advance :).

If you want the main function for ovs-vswitchd, it's in ovs-vswitchd.c.
If you want the main function for ovsdb-server, it's in ovsdb-serve.c.
And so on.



More information about the discuss mailing list