Dear Ben,
i am using the ovs- controller version : ovs-controller (Open V-Switch)
1.1.0pre2
in utilities/ovs-controller.c i added code like this
retval = unixctl_server_create(unixctl_path, &unixctl);
if (retval) {
exit(EXIT_FAILURE);
}
*/* --- My code */*
* pthread_t ofsm_listen_thread;*
* port_no = 7000; /* should be obtained from command line */*
* if ( pthread_create( &ofsm_listen_thread, NULL, listen_server_socket,
(void *)port_no) ) {*
* ovs_fatal(0, "Could not create listening thread for ofsm");*
* }*
while (n_switches > 0 || n_listeners > 0)
bold text is the my code. This code create a thread and calls the
function *listen_server_socket()
*function in file lib/mysocket.c.
in mysocket.c i need logging mechanism using VLOG. i added
the VLOG_DEFINE_THIS_MODULE(mysocket) in my file
a VLOG_MODULE(mysocket) in vlog-modules.def.
can u plz tell me do i need to done any extra code changes for this?
Thanks & Regards,
Nagaraju D
On Thu, Jan 6, 2011 at 10:43 PM, Ben Pfaff <[email protected]> wrote:
> On Thu, Jan 06, 2011 at 05:26:17PM +0530, naga raju wrote:
> > i added my new socket module to ovs-controller by creating separate
> thread
> > and i added my module in vlog-modules.def file.
> >
> > like ex: VLOG_MODULE(mysocket).
> >
> > and i added VLOG_DEFINE_THIS_MODULE(mysocket) in my c file.
> >
> > while compiling i am getting error like undefined reference to
> > 'VLM_mysocket' does anybody have idea regarding adding VLOG to the new
> > module?
>
> Maybe you should tell what version of OVS you are using and show us the
> changes that you made. Then the problem will probably be obvious.
>
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org