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.
 
proto_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.
 
proto_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 376 of file transport.h.

Member Data Documentation

◆ seq_no_send

uint32_t SshPacketState::seq_no_send

Outgoing sequence number.

Definition at line 380 of file transport.h.

◆ seq_no_recv

uint32_t SshPacketState::seq_no_recv

Incoming sequence number.

Definition at line 381 of file transport.h.

◆ is_client

proto_bool SshPacketState::is_client

Definition at line 387 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 391 of file transport.h.

◆ rx_len

size_t SshPacketState::rx_len

Bytes currently in rx_buf.

Definition at line 392 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 402 of file transport.h.

◆ tx_len

size_t SshPacketState::tx_len

Bytes of the framed packet.

Definition at line 403 of file transport.h.

◆ tx_off

size_t SshPacketState::tx_off

Bytes already put on the wire.

Definition at line 404 of file transport.h.

◆ tx_ready

proto_bool SshPacketState::tx_ready

A packet is framed and waiting for a worker.

Definition at line 405 of file transport.h.

◆ mac_work

uint8_t* SshPacketState::mac_work

PROTOCORE_HMAC_SHA256_BORROW bytes. Null until the first packet.

Definition at line 409 of file transport.h.

◆ cipher_work

uint8_t* SshPacketState::cipher_work

Definition at line 412 of file transport.h.

◆ crypto_work

uint8_t* SshPacketState::crypto_work

Definition at line 415 of file transport.h.


The documentation for this struct was generated from the following file: