I did not try to look for the file elsewhere. If it is located somewhere other than wherever it is stated to be, I automatically assume a possible change in its functionality/purpose and ask for confirmation, especially when I am new to it. Here are some "useful" answers I came up with after spending some time with the code, hopefully would help others.
1- The documentation in the code is not as up to date as it is in openvswitch.org. Refer to FAQ->Development in openvswitch.org instead. 2- VLOG function can be used anywhere in the userspace code to print to ovs-vswitch.log file. If you did not explicitly set a path for it during compliation, default is /var/log/openvswitch or /usr/var/log/openvswitch. Remember to see the current logging settings using the "ovs-appctl vlog/list" command and change to desired settings using the "ovs-appctl vlog/set" command. Use printk() in kernel space code, output can be found in syslog/dmesg. Alan 2017-12-29 18:16 GMT+01:00 Gregory Rose <[email protected]>: > On 12/19/2017 6:16 AM, Alan Kayahan wrote: > > Hello, > > I need to add a custom feature to OVS for my research where it can match > on a custom IPv6 extension header, and be able to perform the action of > appending a datagram with a custom IPv6 extension header. > > I cloned the latest version and followed https://github.com/op > envswitch/ovs/blob/7169d4fdc8e564331c7a5ad910bc1d99cb413712/ > FAQ.rst#development however couldn't locate the struct flow in > lib/flow.h. The file lib/meta-flow.h does not exist either. > > I'd appreciate if you could point me in the right direction. And btw, is > there some logging function which I can call anywhere to print to a log > file? For instance, calling log(packet->md) in miniflow_extract so that the > metadata of each passed packet is printed in some log file live. That would > help big time understanding the code. > > Regards, > Alan > > > The Linux "find" utility works great for finding files. > > $ find . -name flow.h > ./datapath/flow.h > ./include/openvswitch/flow.h > ./lib/flow.h > > $find . -name meta-flow.h > ./include/openvswitch/meta-flow.h > > - Greg > > > > _______________________________________________ > discuss mailing > [email protected]https://mail.openvswitch.org/mailman/listinfo/ovs-discuss > > >
_______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
