| 4756 | } |
| 4757 | |
| 4758 | TSReturnCode |
| 4759 | TSHttpTxnClientPacketMarkSet(TSHttpTxn txnp, int mark) |
| 4760 | { |
| 4761 | sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS); |
| 4762 | HttpSM *sm = reinterpret_cast<HttpSM *>(txnp); |
| 4763 | if (nullptr == sm->get_ua_txn()) { |
| 4764 | return TS_ERROR; |
| 4765 | } |
| 4766 | |
| 4767 | NetVConnection *vc = sm->get_ua_txn()->get_netvc(); |
| 4768 | if (nullptr == vc) { |
| 4769 | return TS_ERROR; |
| 4770 | } |
| 4771 | |
| 4772 | vc->options.packet_mark = static_cast<uint32_t>(mark); |
| 4773 | vc->apply_options(); |
| 4774 | return TS_SUCCESS; |
| 4775 | } |
| 4776 | |
| 4777 | TSReturnCode |
| 4778 | TSHttpTxnServerPacketMarkSet(TSHttpTxn txnp, int mark) |
no test coverage detected