public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH-next] batman-adv: set skb priority according?to content
Date: Thu, 15 Aug 2013 14:23:50 +0200	[thread overview]
Message-ID: <20130815122350.GA1588@pandem0nium> (raw)
In-Reply-To: <loom.20130815T031451-708@post.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1433 bytes --]

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

[1] http://wiki.openwrt.org/doc/howto/netfilter
> 
> 
> 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2013-08-15 12:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-29 15:56 [B.A.T.M.A.N.] [PATCH-next] batman-adv: set skb priority according to content Simon Wunderlich
2013-08-07 16:43 ` Marek Lindner
2013-08-15  1:25 ` Ammar Anuar
2013-08-15 12:23   ` Simon Wunderlich [this message]
2013-08-16  2:46     ` [B.A.T.M.A.N.] [PATCH-next] batman-adv: set skb priority according?to content Ammar Anuar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130815122350.GA1588@pandem0nium \
    --to=simon.wunderlich@s2003.tu-chemnitz.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox