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
33 changes: 31 additions & 2 deletions modules/openthread/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,42 @@ config OPENTHREAD_ZEPHYR_BORDER_ROUTER_MODEL_NAME
This value represents Border Agent's product model.

config OPENTHREAD_ZEPHYR_BORDER_ROUTER_MAX_UDP_SERVICES
int "The maximum number of pollable UDP sockets to be registered in platform UDP."
depends on OPENTHREAD_ZEPHYR_BORDER_ROUTER
int "The maximum number of pollable UDP sockets to be registered in platform code."
default 5
help
This configuration defines the maximum number of pollable UDP sockets
to be used within platform UDP module.

config OPENTHREAD_ZEPHYR_BORDER_ROUTER_MAX_MDNS_SERVICES
int "The maximum number of pollable mDNS sockets to be registered in platform code."
default 1 if NET_IPV6 && !NET_IPV4
default 2 if NET_IPV6 && NET_IPV4
help
This configuration defines the maximum number of pollable mDNS sockets
to be used within platform mDNS module.

config OPENTHREAD_ZEPHYR_BORDER_ROUTER_TREL_SERVICES
int "The maximum number of pollable TREL sockets to be registered in platform code."
default 1
help
This configuration defines the maximum number of pollable TREL sockets
to be used within platform TREL module.

config OPENTHREAD_ZEPHYR_BORDER_ROUTER_DHCP6_PD_SERVICES
int "The maximum number of pollable DHCP6_PD sockets to be registered in platform code."
default 1
help
This configuration defines the maximum number of pollable DHCP6_PD sockets
to be used within platform DHCP6_PD module.

config OPENTHREAD_ZEPHYR_BORDER_ROUTER_NAT64_SERVICES
int "The maximum number of pollable RAW IPV4 sockets to be registered in platform code."
depends on OPENTHREAD_NAT64_TRANSLATOR
default 1
help
This configuration defines the maximum number of pollable RAW IPV4 sockets
to be used within platform Infrastructure Interface module.

config OPENTHREAD_ZEPHYR_BORDER_ROUTER_MSG_POOL_NUM
int "Maximum entries of backbone message pool."
default 10
Expand Down
2 changes: 1 addition & 1 deletion modules/openthread/platform/dhcp6_pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#define DHCPV6_SERVER_PORT 547
#define DHCPV6_CLIENT_PORT 546
#define DHCPV6_PD_CLIENT_NUM_SERVICES 1
#define DHCPV6_PD_CLIENT_NUM_SERVICES CONFIG_OPENTHREAD_ZEPHYR_BORDER_ROUTER_DHCP6_PD_SERVICES

static struct zsock_pollfd sockfd_udp[DHCPV6_PD_CLIENT_NUM_SERVICES];
static struct otInstance *ot_instance_ptr;
Expand Down
2 changes: 1 addition & 1 deletion modules/openthread/platform/infra_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static struct net_icmp_ctx na_ctx;
static void infra_if_handle_backbone_icmp6(struct otbr_msg_ctx *msg_ctx_ptr);
static void handle_ra_from_ot(const uint8_t *buffer, uint16_t buffer_length);
#if defined(CONFIG_OPENTHREAD_NAT64_TRANSLATOR)
#define MAX_SERVICES 1
#define MAX_SERVICES CONFIG_OPENTHREAD_ZEPHYR_BORDER_ROUTER_NAT64_SERVICES

static struct zsock_pollfd sockfd_raw[MAX_SERVICES];
static void raw_receive_handler(struct net_socket_service_event *evt);
Expand Down
6 changes: 1 addition & 5 deletions modules/openthread/platform/mdns_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@
#include "sockets_internal.h"

#define MULTICAST_PORT 5353
#if defined(CONFIG_NET_IPV4) && defined(CONFIG_NET_IPV6)
#define MAX_SERVICES 2
#else
#define MAX_SERVICES 1
#endif
#define MAX_SERVICES CONFIG_OPENTHREAD_ZEPHYR_BORDER_ROUTER_MAX_MDNS_SERVICES

static struct zsock_pollfd sockfd_udp[MAX_SERVICES];
static int mdns_sock_v6 = -1;
Expand Down
2 changes: 1 addition & 1 deletion modules/openthread/platform/trel.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <zephyr/net/net_ip.h>
#include "sockets_internal.h"

#define MAX_SERVICES 1
#define MAX_SERVICES CONFIG_OPENTHREAD_ZEPHYR_BORDER_ROUTER_TREL_SERVICES

static struct zsock_pollfd sockfd_udp[MAX_SERVICES];
static int trel_sock = -1;
Expand Down