| 336 | } |
| 337 | |
| 338 | bool |
| 339 | http2_parse_settings_parameter(IOVec iov, Http2SettingsParameter ¶m) |
| 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 | |
| 358 | bool |
| 359 | http2_parse_goaway(IOVec iov, Http2Goaway &goaway) |
no test coverage detected