MCPcopy Create free account
hub / github.com/apache/trafficserver / TSHttpTxnClientPacketMarkSet

Function TSHttpTxnClientPacketMarkSet

src/api/InkAPI.cc:4758–4775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4756}
4757
4758TSReturnCode
4759TSHttpTxnClientPacketMarkSet(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
4777TSReturnCode
4778TSHttpTxnServerPacketMarkSet(TSHttpTxn txnp, int mark)

Callers 3

execMethod · 0.85
SetMarkMethod · 0.85

Calls 4

sdk_sanity_check_txnFunction · 0.85
get_ua_txnMethod · 0.80
get_netvcMethod · 0.45
apply_optionsMethod · 0.45

Tested by

no test coverage detected