ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
SshPacketState Struct Reference

Per-connection SSH binary packet state. More...

#include <transport.h>

Public Attributes

uint32_t seq_no_send
 Outgoing sequence number.
uint32_t seq_no_recv
 Incoming sequence number.
embed_bool is_client
uint8_t * rx_buf
 SSH_RX_ASM_CAP bytes at SSH_OFF_RX_ASM. Null until claimed.
size_t rx_len
 Bytes currently in rx_buf.
uint8_t * tx_wire
 The wire buffer for this slot. Null until the first packet.
size_t tx_len
 Bytes of the framed packet.
size_t tx_off
 Bytes already put on the wire.
embed_bool tx_ready
 A packet is framed and waiting for a worker.
uint8_t * mac_work
 PROTOCORE_HMAC_SHA256_BORROW bytes. Null until the first packet.
uint8_t * cipher_work
uint8_t * crypto_work

Detailed Description

Per-connection SSH binary packet state.

Allocated in ssh_pool[] (BSS); one entry per SSH connection slot. Key material is in ssh_keys[] - a separate BSS symbol to prevent linear overflow from packet buffers into key material.

Definition at line 392 of file transport.h.

Member Data Documentation

◆ seq_no_send

uint32_t SshPacketState::seq_no_send

Outgoing sequence number.

Definition at line 396 of file transport.h.

◆ seq_no_recv

uint32_t SshPacketState::seq_no_recv

Incoming sequence number.

Definition at line 397 of file transport.h.

◆ is_client

embed_bool SshPacketState::is_client

Definition at line 403 of file transport.h.

◆ rx_buf

uint8_t* SshPacketState::rx_buf

SSH_RX_ASM_CAP bytes at SSH_OFF_RX_ASM. Null until claimed.

Definition at line 407 of file transport.h.

◆ rx_len

size_t SshPacketState::rx_len

Bytes currently in rx_buf.

Definition at line 408 of file transport.h.

◆ tx_wire

uint8_t* SshPacketState::tx_wire

The wire buffer for this slot. Null until the first packet.

Definition at line 418 of file transport.h.

◆ tx_len

size_t SshPacketState::tx_len

Bytes of the framed packet.

Definition at line 419 of file transport.h.

◆ tx_off

size_t SshPacketState::tx_off

Bytes already put on the wire.

Definition at line 420 of file transport.h.

◆ tx_ready

embed_bool SshPacketState::tx_ready

A packet is framed and waiting for a worker.

Definition at line 421 of file transport.h.

◆ mac_work

uint8_t* SshPacketState::mac_work

PROTOCORE_HMAC_SHA256_BORROW bytes. Null until the first packet.

Definition at line 425 of file transport.h.

◆ cipher_work

uint8_t* SshPacketState::cipher_work

Definition at line 428 of file transport.h.

◆ crypto_work

uint8_t* SshPacketState::crypto_work

Definition at line 431 of file transport.h.


The documentation for this struct was generated from the following file:
  • src/network_drivers/presentation/ssh/transport/transport/transport.h