aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-04-26 18:25:48 -0700
committerGarrett D'Amore <garrett@damore.org>2025-04-27 10:53:52 -0700
commite7977ae777ac62928041e2a07f6eddc69eb4fc40 (patch)
tree823feb4f4661f98d3dab082961e305c3b9f9206e /include
parent527a07c6b632f6991102d4fd08ac1f5f962ddfdf (diff)
downloadnng-e7977ae777ac62928041e2a07f6eddc69eb4fc40.tar.gz
nng-e7977ae777ac62928041e2a07f6eddc69eb4fc40.tar.bz2
nng-e7977ae777ac62928041e2a07f6eddc69eb4fc40.zip
TLS: break up the TLS layer a bit to refactor for DTLS.
This allows us to break the assumption that the bottom half is TCP, or even an nng_stream, since the DTLS layer will use a totally different layer. Only nng_stream neeeds to support dial and listen. Also: UDP: Make the sockaddr arguments to open const. Also: Align the IPv6 address in the sockaddr (this allows for efficient 64-bit or even 128-bit operations on these values.)
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index 6f041fcb..574a0427 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -202,8 +202,8 @@ struct nng_sockaddr_path {
struct nng_sockaddr_in6 {
uint16_t sa_family;
uint16_t sa_port;
+ uint32_t sa_scope; // scope moved here to make sa_addr 64-bit aligned
uint8_t sa_addr[16];
- uint32_t sa_scope;
};
struct nng_sockaddr_in {