Skip to main content

check_parameter_scope

Function check_parameter_scope 

Source
fn check_parameter_scope(message: &ControlMessage) -> Result<(), CodecError>
Expand description

Refuse a message carrying a Message Parameter its own definition does not place there.

Section 9.3.1 answers this with a close, which the drafts below do not. Draft-16 Section 9.2.2, and drafts 07 through 15 under the older name Version Specific Parameters, end the same sentence “it MUST be ignored” — so this check belongs to drafts 17, 18 and 19 and to no draft before them.

Applied on both sides. A parameter outside its scope is one the peer must close the session over, so writing one is a way to end a session rather than a way to ask for anything.