You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2015/01/28 00:56:22 UTC

[2/2] trafficserver git commit: TS-3332: Allow set-conn-dscp to work in remap

TS-3332: Allow set-conn-dscp to work in remap


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/138269ee
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/138269ee
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/138269ee

Branch: refs/heads/master
Commit: 138269ee2f585de819a3924d30d42508a0513cb2
Parents: 2f6e326
Author: Phil Sorber <so...@apache.org>
Authored: Tue Jan 27 16:52:47 2015 -0700
Committer: Phil Sorber <so...@apache.org>
Committed: Tue Jan 27 16:56:09 2015 -0700

----------------------------------------------------------------------
 CHANGES                             | 2 ++
 plugins/header_rewrite/operators.cc | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/138269ee/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index ea15c58..284e440 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 5.3.0
 
+  *) [TS-3332] Allow set-conn-dscp to work in remap.
+
   *) [TS-3330] Several broken stats
 
   *) [TS-3326] apply proxy.config.http.send_http11_requests when hostdb is

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/138269ee/plugins/header_rewrite/operators.cc
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/operators.cc b/plugins/header_rewrite/operators.cc
index aed1046..9b34edf 100644
--- a/plugins/header_rewrite/operators.cc
+++ b/plugins/header_rewrite/operators.cc
@@ -563,12 +563,13 @@ OperatorSetConnDSCP::initialize_hooks()
 {
   add_allowed_hook(TS_HTTP_READ_REQUEST_HDR_HOOK);
   add_allowed_hook(TS_HTTP_SEND_RESPONSE_HDR_HOOK);
+  add_allowed_hook(TS_REMAP_PSEUDO_HOOK);
 }
 
 void
 OperatorSetConnDSCP::exec(const Resources& res) const
 {
   if (res.txnp) {
-    TSHttpTxnClientPacketTosSet(res.txnp, _ds_value.get_int_value());
+    TSHttpTxnClientPacketTosSet(res.txnp, _ds_value.get_int_value() << 2);
   }
 }