All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@inai.de>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nft 1/2] src: add dscp support
Date: Wed, 25 Nov 2015 23:27:15 +0000	[thread overview]
Message-ID: <20151125232715.GE20093@macbook.localdomain> (raw)
In-Reply-To: <alpine.LSU.2.20.1511252341470.6198@nerf40.vanv.qr>

On 26.11, Jan Engelhardt wrote:
> 
> On Wednesday 2015-11-25 21:01, Patrick McHardy wrote:
> >On 25.11, Pablo Neira Ayuso wrote:
> >>  #define TYPE_MAX		(__TYPE_MAX - 1)
> >> diff --git a/include/proto.h b/include/proto.h
> >> index a43bf98..41af0c1 100644
> >> --- a/include/proto.h
> >> +++ b/include/proto.h
> >> @@ -176,7 +176,7 @@ enum ip_hdr_fields {
> >>  	IPHDR_INVALID,
> >>  	IPHDR_VERSION,
> >>  	IPHDR_HDRLENGTH,
> >> -	IPHDR_TOS,
> >> +	IPHDR_DSCP,
> >
> >Shouldn't we keep both?
> 
> >From what I read from RFC 2474, DSCP is the 6-bit portion.
> The 8-bit field is known as
>   (a) TOS per IPv4 RFC
>   (b) TC (Traffic Class) per IPv6 RFC 2460
>   (c) DS per RFC 2472
> 
> I would therefore recommend against IPHDR_DSCP, and instead go
> with either of IPHDR_TOS, IPHDR_DS, IPHDR_DIFFSERV, or even
> some mnemonic involving traffic class.

But we actually do refer to the 6 bit sub-field and the further 2 bit ECN
sub-field, they are seperate fields with Pablo's patch.

      reply	other threads:[~2015-11-25 23:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-25 19:39 [PATCH nft 1/2] src: add dscp support Pablo Neira Ayuso
2015-11-25 19:39 ` [PATCH nft 2/2] src: add ecn support Pablo Neira Ayuso
2015-11-25 20:02   ` Patrick McHardy
2015-11-25 20:01 ` [PATCH nft 1/2] src: add dscp support Patrick McHardy
2015-11-25 20:22   ` Pablo Neira Ayuso
2015-11-25 20:45     ` Patrick McHardy
2015-11-25 22:05       ` Pablo Neira Ayuso
2015-11-25 23:23         ` Patrick McHardy
2015-11-26  9:45           ` Pablo Neira Ayuso
2015-11-26  9:54             ` Patrick McHardy
2015-11-26 10:28               ` Pablo Neira Ayuso
2015-11-26 10:42                 ` Patrick McHardy
2015-11-25 23:17   ` Jan Engelhardt
2015-11-25 23:27     ` Patrick McHardy [this message]

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=20151125232715.GE20093@macbook.localdomain \
    --to=kaber@trash.net \
    --cc=jengelh@inai.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.