All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] src: proto: support DF, LE, VA for DSCP
@ 2022-06-20 18:58 Oleksandr Natalenko
  2022-06-27 17:31 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 6+ messages in thread
From: Oleksandr Natalenko @ 2022-06-20 18:58 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Pablo Neira Ayuso, Florian Westphal, Loganaden Velvindron

Add a couple of aliases for well-known DSCP values.

As per RFC 4594, add "df" as an alias of "cs0" with 0x00 value.

As per RFC 5865, add "va" for VOICE-ADMIT with 0x2c value.

As per RFC 8622, add "le" for Lower-Effort with 0x01 value.

tc-cake(8) in diffserv8 mode would benefit from having "le" alias since
it corresponds to "Tin 0".

Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
---
 src/proto.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/proto.c b/src/proto.c
index a013a00d..84555b9e 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -684,7 +684,9 @@ static const struct symbol_table dscp_type_tbl = {
 		SYMBOL("cs5",	0x28),
 		SYMBOL("cs6",	0x30),
 		SYMBOL("cs7",	0x38),
+		SYMBOL("df",	0x00),
 		SYMBOL("be",	0x00),
+		SYMBOL("le",	0x01),
 		SYMBOL("af11",	0x0a),
 		SYMBOL("af12",	0x0c),
 		SYMBOL("af13",	0x0e),
@@ -697,6 +699,7 @@ static const struct symbol_table dscp_type_tbl = {
 		SYMBOL("af41",	0x22),
 		SYMBOL("af42",	0x24),
 		SYMBOL("af43",	0x26),
+		SYMBOL("va",	0x2c),
 		SYMBOL("ef",	0x2e),
 		SYMBOL_LIST_END
 	},
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-11 11:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 18:58 [PATCH] src: proto: support DF, LE, VA for DSCP Oleksandr Natalenko
2022-06-27 17:31 ` Pablo Neira Ayuso
2022-06-28 18:29   ` Oleksandr Natalenko
2022-06-29 17:24     ` Pablo Neira Ayuso
2022-06-29 17:34       ` Oleksandr Natalenko
2022-07-11 10:27         ` Pablo Neira Ayuso

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.