Skip to content

SshChannelLimits

[Source]

Bounds on channel state, enforced so a hostile peer cannot grow it without bound.

primitive val SshChannelLimits

Constructors

create

[Source]

new val create()
: SshChannelLimits val^

Returns


Public Functions

max_concurrent

[Source]

Maximum number of channels held at once. A peer that repeatedly opens channels must not grow stored channel state without bound.

fun box max_concurrent()
: USize val

Returns


min_max_packet

[Source]

Minimum peer channel packet size accepted by this implementation. Smaller limits would require too many outbound packets per application send.

fun box min_max_packet()
: U32 val

Returns


max_max_packet

[Source]

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.

fun box max_max_packet()
: U32 val

Returns


supported_max_packet

[Source]

Whether a peer's packet size meets the supported minimum.

fun box supported_max_packet(
  value: U32 val)
: Bool val

Parameters

  • value: U32 val

Returns


cap_max_packet

[Source]

Cap an accepted peer packet size to the transport's payload limit.

fun box cap_max_packet(
  value: U32 val)
: U32 val

Parameters

  • value: U32 val

Returns


eq

[Source]

fun box eq(
  that: SshChannelLimits val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: SshChannelLimits val)
: Bool val

Parameters

Returns