2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
// author: Max Kellermann <max.kellermann@gmail.com>
|
2022-01-11 20:05:34 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Parse a DSCP (Differentiated Services Code Point) class name.
|
|
|
|
* This can either be a name (CS*, LE, AF*, EF) or numeric (decimal or
|
|
|
|
* hexadecimal).
|
|
|
|
*
|
|
|
|
* @return the DSCP or -1 on error
|
|
|
|
*/
|
|
|
|
[[gnu::pure]]
|
|
|
|
int
|
|
|
|
ParseDscpClass(const char *s) noexcept;
|