Something is not correct in your reasoning:
batctl ping/traceroute is a debug mechanism in which you make two _nodes_ communicate with each other, therefore here you use the node identifier which is the MAC address that you can also read in batctl o output.
When you want to send _payload data_ over bat0 (and this is what your program is trying to do), then you are acting as _client_ and your source mac address is not your ah0's address anymore but it is the one associated to your bat0. To see it just run "ifconfig bat0" and and look at the HWAddr info.
Cheers,
On Wed, Nov 28, 2012 at 06:09:48PM -0500, liu muye wrote:
Besides, when do batctl ping. I am using the MAC address of ah0. I can ping other node. If the MAC address is wrong, I think I cannot even ping another node, or traceroute to another node.
Thanks
On Wed, Nov 28, 2012 at 6:02 PM, liu muye lmy19901031@gmail.com wrote:
One follow up question:
When I do batctl o. It shows the MAC address of my network interface. In my case, is ah0. Not sure what to do in order to show the MAC address of the bat0.
Thanks Muye Liu
On Tue, Nov 27, 2012 at 11:15 PM, liu muye lmy19901031@gmail.com wrote:
Hello:
This is Muye again. I have encountered another problem recently when I am using B.A.T.M.A.N to do the socket programming.
Currently, I have three nodes. Namely, node A, node B, and node C. The testing environment is a hall way in our department.
I put node A in one end of the hall way, node C in another end of the hall way. Node B is in the middle of the hall way.
I can ping node C from node A and vice versa. In node A, I can traceroute to node C. The traceroute shows it needs to go through node B.
However, when I send packet from node A to node C. Node C does not receive anything. But if I send packet from node A to node B, node B can receive that packet. Not sure what happened. The link shown below is the program I used to send packet. Both source and destination are MAC address.
https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/attachments/20111206/52f06...
I greatly appreciate any suggestion, comment, and help.
Thanks