SshChannelLimits¶
Bounds on channel state, enforced so a hostile peer cannot grow it without bound.
Constructors¶
create¶
Returns¶
- SshChannelLimits val^
Public Functions¶
max_concurrent¶
Maximum number of channels held at once. A peer that repeatedly opens channels must not grow stored channel state without bound.
Returns¶
- USize val
min_max_packet¶
Minimum peer channel packet size accepted by this implementation. Smaller limits would require too many outbound packets per application send.
Returns¶
- U32 val
max_max_packet¶
Ceiling for a peer's advertised channel packet size. Above the transport's own 35000-byte packet limit we would frame packets our own reader — and a conformant peer's — rejects. 32768 is the RFC 4253 §6.1 payload size.
Returns¶
- U32 val
supported_max_packet¶
Whether a peer's packet size meets the supported minimum.
Parameters¶
- value: U32 val
Returns¶
- Bool val
cap_max_packet¶
Cap an accepted peer packet size to the transport's payload limit.
Parameters¶
- value: U32 val
Returns¶
- U32 val
eq¶
Parameters¶
- that: SshChannelLimits val
Returns¶
- Bool val
ne¶
Parameters¶
- that: SshChannelLimits val
Returns¶
- Bool val