Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
coap_oscore_exchange Struct Reference

OSCORE exchange entry. More...

#include <zephyr/net/coap_oscore.h>

Data Fields

struct net_sockaddr_storage addr
 Client address.
net_socklen_t addr_len
 Address length.
uint8_t token [COAP_TOKEN_MAX_LEN]
 Token from the request.
uint8_t tkl
 Token length.
int64_t timestamp
 Creation timestamp.
struct coap_oscore_context * ctx
 OSCORE context used for this exchange.

Detailed Description

OSCORE exchange entry.

Tracks which server responses need OSCORE protection by matching the client address and request token (RFC 8613 Section 8.3). A CoAP service defined with COAP_SERVICE_DEFINE_OSCORE owns a statically allocated cache of these entries.

Attention
Available only when the following Kconfig option is enabled: CONFIG_COAP_OSCORE.

Field Documentation

◆ addr

struct net_sockaddr_storage coap_oscore_exchange::addr

Client address.

◆ addr_len

net_socklen_t coap_oscore_exchange::addr_len

Address length.

◆ ctx

struct coap_oscore_context* coap_oscore_exchange::ctx

OSCORE context used for this exchange.

◆ timestamp

int64_t coap_oscore_exchange::timestamp

Creation timestamp.

◆ tkl

uint8_t coap_oscore_exchange::tkl

Token length.

◆ token

uint8_t coap_oscore_exchange::token[COAP_TOKEN_MAX_LEN]

Token from the request.


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