Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal@plouf.fr.eu.org>
To: Oliver Graute <oliver.graute@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Marking frames with ebtables for iptables
Date: Mon, 07 Dec 2015 23:39:11 +0100	[thread overview]
Message-ID: <56660A8F.2000802@plouf.fr.eu.org> (raw)
In-Reply-To: <CA+KjHfaK=qGZAvwCEZ1XNGcLBSQ6VE9z69E0XSxX_mfkHQ8TgA@mail.gmail.com>

Oliver Graute a écrit :
> 
> I just tried a "simple" example with "mac" match to understand the
> ebtables/iptables mix.
> But the real goal is to mark frames coming from a tagged port with a
> 3-bit PCP Field.(IEEE 802.1p/ 802.1Q)
> Later on I want to proceed these marked frames on IP-Layer to
> set some ToS Bits. How is that done?

I don't know what the PCP field is. Is it the same as the 3-bit user
priority field in a IEEE 802.1Q header ? If so, you can use the vlan
match in ebtables.

To set TOS bits with iptables, you can use the TOS or DSCP target.

  reply	other threads:[~2015-12-07 22:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-02 14:02 Marking frames with ebtables for iptables Oliver Graute
2015-12-05 11:30 ` Pascal Hambourg
2015-12-07  8:43   ` Oliver Graute
2015-12-07 22:39     ` Pascal Hambourg [this message]
2015-12-08  7:10       ` Oliver Graute

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=56660A8F.2000802@plouf.fr.eu.org \
    --to=pascal@plouf.fr.eu.org \
    --cc=netfilter@vger.kernel.org \
    --cc=oliver.graute@gmail.com \
    /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