| 117 | } |
| 118 | |
| 119 | bool |
| 120 | http2_frame_header_is_valid(const Http2FrameHeader &hdr, unsigned /* max_frame_size ATS_UNUSED */) |
| 121 | { |
| 122 | // 6.1 If a DATA frame is received whose stream identifier field is 0x0, the recipient MUST |
| 123 | // respond with a connection error (Section 5.4.1) of type PROTOCOL_ERROR. |
| 124 | if (hdr.type == HTTP2_FRAME_TYPE_DATA && hdr.streamid == 0) { |
| 125 | return false; |
| 126 | } |
| 127 | |
| 128 | return true; |
| 129 | } |
| 130 | |
| 131 | bool |
| 132 | http2_settings_parameter_is_valid(const Http2SettingsParameter ¶m) |