On Sun, Mar 14, 2010 at 12:35:50AM +0000, Kevin Steen wrote:
I've been lurking on this list for a few weeks, but finally tried compiling and running the batman-adv module from the svn sources.
It seems to work fine between my two test machines so far, but I noticed some weird sequence numbers when doing a dump with 'batctl td'. In the sequence below, I had 'rover' running and active on rover's eth0, then I activated the eth1 interface on hilltop for a few seconds, then de-activated it.
It seems like when rover re-sends the OGM from hilltop, it gets the sequence number wrong (1->256, 2->512, 3->768). Is this my lack of understanding of how it should work, a bug in batctl's display or a bug in batman-adv?
rover is kernel 2.6.31-20-generic (Ubuntu karmic), hilltop is kernel 2.6.26-2-686 (Debian lenny)
$ ./batctl td eth1 23:37:22.022554 BAT rover-eth0: OGM via neigh rover-eth0, seqno 481, tq 255, ttl 50, v 9, flags [..F], length 42 23:37:23.002547 BAT rover-eth0: OGM via neigh rover-eth0, seqno 482, tq 255, ttl 50, v 9, flags [..F], length 42 23:37:23.982469 BAT rover-eth0: OGM via neigh rover-eth0, seqno 483, tq 255, ttl 50, v 9, flags [..F], length 42 23:37:24.962417 BAT rover-eth0: OGM via neigh rover-eth0, seqno 484, tq 255, ttl 50, v 9, flags [..F], length 42 23:37:25.962320 BAT rover-eth0: OGM via neigh rover-eth0, seqno 485, tq 255, ttl 50, v 9, flags [..F], length 42 23:37:26.943490 BAT rover-eth0: OGM via neigh rover-eth0, seqno 486, tq 0, ttl 49, v 9, flags [D..], length 42 23:37:27.041437 BAT rover-eth0: OGM via neigh hilltop-eth1, seqno 486, tq 0, ttl 49, v 9, flags [D..], length 28 23:37:27.893422 BAT hilltop-eth1: OGM via neigh hilltop-eth1, seqno 1, tq 255, ttl 50, v 9, flags [..F], length 22 23:37:27.922233 BAT rover-eth0: OGM via neigh rover-eth0, seqno 487, tq 0, ttl 49, v 9, flags [D..], length 42
Thanks for testing the code. I doubt that this is a bug in the batman-adv code. Can you please make a capture of the raw packet data using tcpdump and/or wireshark? I think that this is a batctl bug, but I don't have time to check it right now. You can do the comparison by yourself using the wireshark-batman-adv dissector linked in the open-mesh.net wiki.
Best regards, Sven