summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: acabacd)
raw | patch | inline | side by side (parent: acabacd)
author | Florian Forster <octo@verplant.org> | |
Fri, 29 Oct 2010 08:09:58 +0000 (10:09 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Fri, 29 Oct 2010 08:09:58 +0000 (10:09 +0200) |
src/mans/oping.pod | patch | blob | history | |
src/oping.c | patch | blob | history |
diff --git a/src/mans/oping.pod b/src/mans/oping.pod
index 3a7c8ac6febd57d9e4da10f3387840a91f07fa62..dba318c14dec50e0446803652d8e586062d1d7f1 100644 (file)
--- a/src/mans/oping.pod
+++ b/src/mans/oping.pod
I<RFCE<nbsp>3246>. This PHB is characterised by low delay, low loss and low
jitter, i.e. high priority traffic.
+=item B<va>
+
+Selects the I<Voice Admitted> (VA) per-hop behavior, as defined in
+I<RFCE<nbsp>5865>. This traffic class is meant for I<Voice over IP> (VoIP)
+traffic which uses I<Call Admission Control> (CAC) for reserving network
+capacity.
+
=item B<af>I<c>I<p>
Selects one of 12E<nbsp>differentiated services code points (DSCPs), which are
diff --git a/src/oping.c b/src/oping.c
index 5b13a1ffe3269424e02ecd72fd23b6c7b4d60ae5..776dc0b6becd95aa7bc5b5e8ada9b99b3050f9c1 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
" be Best Effort (BE, default PHB).\n"
" ef Expedited Forwarding (EF) PHB group (RFC 3246).\n"
" (low delay, low loss, low jitter)\n"
+ " va Voice Admit (VA) DSCP (RFC 5865).\n"
+ " (capacity-admitted traffic)\n"
" af[1-4][1-3] Assured Forwarding (AF) PHB group (RFC 2597).\n"
" For example: \"af12\" (class 1, precedence 2)\n"
" cs[0-7] Class Selector (CS) PHB group (RFC 2474).\n"
/* - Expedited Forwarding (EF, RFC 3246) */
else if (strcasecmp ("ef", opt) == 0)
opt_send_qos = 0xB8; /* == 0x2E << 2 */
+ /* - Voice Admit (VA, RFC 5865) */
+ else if (strcasecmp ("va", opt) == 0)
+ opt_send_qos = 0xB0; /* == 0x2D << 2 */
/* - Assured Forwarding (AF, RFC 2597) */
else if ((strncasecmp ("af", opt, strlen ("af")) == 0)
&& (strlen (opt) == 4))
@@ -410,6 +415,7 @@ static char *format_qos (uint8_t qos, char *buffer, size_t buffer_size) /* {{{ *
{
case 0x00: dscp_str = "be"; break;
case 0x2e: dscp_str = "ef"; break;
+ case 0x2d: dscp_str = "va"; break;
case 0x0a: dscp_str = "af11"; break;
case 0x0c: dscp_str = "af12"; break;
case 0x0e: dscp_str = "af13"; break;