diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-12-07 18:44:44 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-05-11 23:01:31 +0200 |
commit | 7fbbeb1f0db7718fbfedea4e50f69a54d1bfda70 (patch) | |
tree | 65065e98da864311841897d11120f6ca5b8cbe10 | |
parent | 56e2128650b592792efdc3a4a9c4b3952eab83d0 (diff) |
proto: remove priority field definition from IPv6 header
This is actually part of the traffic class field according to RFC2460.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/proto.c | 1 | ||||
-rw-r--r-- | tests/py/ip6/ip6.t | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/proto.c b/src/proto.c index 9e972a36..fb774b16 100644 --- a/src/proto.c +++ b/src/proto.c @@ -642,7 +642,6 @@ const struct proto_desc proto_ip6 = { }, .templates = { [IP6HDR_VERSION] = HDR_BITFIELD("version", &integer_type, 0, 4), - [IP6HDR_PRIORITY] = HDR_BITFIELD("priority", &integer_type, 4, 4), [IP6HDR_FLOWLABEL] = HDR_BITFIELD("flowlabel", &integer_type, 12, 20), [IP6HDR_LENGTH] = IP6HDR_FIELD("length", payload_len), [IP6HDR_NEXTHDR] = INET_PROTOCOL("nexthdr", struct ipv6hdr, nexthdr), diff --git a/tests/py/ip6/ip6.t b/tests/py/ip6/ip6.t index 2a1eee78..8226130c 100644 --- a/tests/py/ip6/ip6.t +++ b/tests/py/ip6/ip6.t @@ -9,14 +9,6 @@ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ip6 version 6;ok -- ip6 priority 3;ok - -# $ sudo nft add rule ip6 test6 input ip6 priority 33 -# <cmdline>:1:39-40: Error: Value 33 exceeds valid range 0-15 -# $ sudo nft add rule ip6 test6 input ip6 priority 3 -# <cmdline>:1:1-39: Error: Could not process rule: Invalid argument -# add rule ip6 test6 input ip6 priority 3 -#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ip6 flowlabel 22;ok ip6 flowlabel != 233;ok |