| 4775 | } |
| 4776 | |
| 4777 | TSReturnCode |
| 4778 | TSHttpTxnServerPacketMarkSet(TSHttpTxn txnp, int mark) |
| 4779 | { |
| 4780 | sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS); |
| 4781 | HttpSM *sm = reinterpret_cast<HttpSM *>(txnp); |
| 4782 | |
| 4783 | // change the mark on an active server session |
| 4784 | ProxyTransaction *ssn = sm->get_server_txn(); |
| 4785 | if (nullptr != ssn) { |
| 4786 | NetVConnection *vc = ssn->get_netvc(); |
| 4787 | if (vc != nullptr) { |
| 4788 | vc->options.packet_mark = static_cast<uint32_t>(mark); |
| 4789 | vc->apply_options(); |
| 4790 | } |
| 4791 | } |
| 4792 | |
| 4793 | // update the transactions mark config for future connections |
| 4794 | TSHttpTxnConfigIntSet(txnp, TS_CONFIG_NET_SOCK_PACKET_MARK_OUT, mark); |
| 4795 | return TS_SUCCESS; |
| 4796 | } |
| 4797 | |
| 4798 | TSReturnCode |
| 4799 | TSHttpTxnClientPacketDscpSet(TSHttpTxn txnp, int dscp) |
no test coverage detected