Hello Ammar,
On Thu, Aug 15, 2013 at 01:25:36AM +0000, Ammar Anuar wrote:
Hi Simon, Thank you for your patch. I really appreciate your great work. I setup two nodes connecting each other using batman-adv. After applying this patch, I tried to use iptables to change the DSCP value and it properly mapped with access category. But the when I put batman interface (bat0) under bridge (br0), DSCP value no longer mapped with access category. The iptables command that I used is iptables -t mangle -A POSTROUTING -s <source ip> -j DSCP --set-dscp <dscp value> I'm still new in this field. Did I miss some command to pass the iptables command to the bridge?
When you say "put under bridge", where are the packets generated? Do you generate the packets on the nodes on which batman-adv runs, or are you receiving/forwarding packets from other interfaces (eth0, wlan0...)?
In this case, the iptables rules might not apply correctly - you can check by snooping the traffic on bat0 (using tcpdump/wireshark) and see if the DSCP field is set according to your rules. If not, the iptables call might not be effective and you might want to check bridge-nf-call parameters (see the top of [1] for explanation).
If the DSCP field is set correctly but batman-adv still ignores it, please let me know. :)
Cheers, Simon