Hi Spyros, On Sun, May 27, 2012 at 05:00:42PM +0300, NorthPole wrote: > Hello everyone, i'm trying to setup an emulation environment and i > have some questions: > > * although i downloaded the vde2-2.3.1 source and the appropriate > patches (vde2-2.3.1_colour.patch and > vde2-2.3.1-wirefilter-ethertype.patch ) the wirefilter patch could not > be applied giving the following output > > $patch <vde2-2.3.1-wirefilter-ethertype.patch > patching file wirefilter.c > Hunk #1 FAILED at 59. > Hunk #2 FAILED at 524. > Hunk #3 FAILED at 1391. > Hunk #4 FAILED at 1402. > Hunk #5 FAILED at 1421. > Hunk #6 FAILED at 1475. > 6 out of 6 hunks FAILED -- saving rejects to file wirefilter.c.rej > > any tips on how I can find why it failed and how to apply the patch? >
Have you tried "patch -1 <patchfile.patch" ? > > *I ran the script without the wirefilter patch and I got a blank > terminal,is this expected? > what script? Wirefilter is a "daemon" that run and gives the link some properties. By the way using it in your testbed without the colour patch doesn't make much sense. > * how can I get the dmesg(and generally any command) output > from the qemu instances? > you could directly enter the VM console and use it like you were on that "PC". Actually each VM should run into a screen instance. So you can use screen to decide which console to attach to. "screen -ls" should give you the list of instances and "screen -r <pid>" will attach your terminal to one of the instances (man screen for further details). > > *provided i have built open-wrt with batman and have put the > appropriate script in wrt's ./files/etc/rc.local batman should start > as a daemon right? Daemon? You know that batman-adv is not a daemon :) If everything is properly configured (i.e. openwrt configures bat0 the proper way) then yes, batman-adv will be properly running :) > given that, I should be seeing batman packets in the capture, right? > I think so. Sniffing on tapwrt0 should enable you to see the batman traffic! > *wireshark should recognize that a given packet is an ogm packet or > there is another way to filter only the relevant ones? > If you use >=wireshark-1.7.0 then you will be able to correctly parse batman-adv traffic (COMPAT_VERSION 14, which is the last). And then you can apply whatever filter you like :) > > Thank you for your time Thank you for asking! Cheers, -- Antonio Quartulli ..each of us alone is worth nothing.. Ernesto "Che" Guevara
pgp7hcvsYR1Ek.pgp
Description: PGP signature
