Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/releases/migration-guide-4.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ Networking
:c:macro:`HTTPS_SERVICE_DEFINE_EMPTY`, :c:macro:`HTTP_SERVICE_DEFINE` and
:c:macro:`HTTPS_SERVICE_DEFINE`.

* The size of socket address length type :c:type:`socklen_t` has changed. It is now defined to
be always 32 bit ``uint32_t`` in order to be aligned with Linux. Previously it was defined as
``size_t`` which meant that the size could be either 32 bit or 64 bit depending on system
configuration.

.. zephyr-keep-sorted-start re(^\w)

.. zephyr-keep-sorted-stop
Expand Down
4 changes: 2 additions & 2 deletions include/zephyr/net/net_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ enum net_context_option {
*/
int net_context_set_option(struct net_context *context,
enum net_context_option option,
const void *value, size_t len);
const void *value, uint32_t len);

/**
* @brief Get connection option value for this context.
Expand All @@ -1433,7 +1433,7 @@ int net_context_set_option(struct net_context *context,
*/
int net_context_get_option(struct net_context *context,
enum net_context_option option,
void *value, size_t *len);
void *value, uint32_t *len);

/**
* @typedef net_context_cb_t
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/net/net_ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ typedef unsigned short int sa_family_t;

/** Length of a socket address */
#ifndef __socklen_t_defined
typedef size_t socklen_t;
typedef uint32_t socklen_t;
#define __socklen_t_defined
#endif

Expand Down
Loading