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

Function http2_parse_settings_parameter

src/proxy/http2/HTTP2.cc:338–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338bool
339http2_parse_settings_parameter(IOVec iov, Http2SettingsParameter &param)
340{
341 byte_pointer ptr(iov.iov_base);
342 byte_addressable_value<uint16_t> pid;
343 byte_addressable_value<uint32_t> pval;
344
345 if (unlikely(iov.iov_len < HTTP2_SETTINGS_PARAMETER_LEN)) {
346 return false;
347 }
348
349 memcpy_and_advance(pid.bytes, ptr);
350 memcpy_and_advance(pval.bytes, ptr);
351
352 param.id = ntohs(pid.value);
353 param.value = ntohl(pval.value);
354
355 return true;
356}
357
358bool
359http2_parse_goaway(IOVec iov, Http2Goaway &goaway)

Callers 1

rcv_settings_frameMethod · 0.85

Calls 1

memcpy_and_advanceFunction · 0.85

Tested by

no test coverage detected