Skip to content
Open
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
4 changes: 3 additions & 1 deletion include/zephyr/net/net_linkaddr.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ extern "C" {
*/

/** Maximum length of the link address */
#if defined(CONFIG_NET_L2_PHY_IEEE802154) || defined(CONFIG_NET_L2_PPP)
#if CONFIG_NET_LINK_ADDR_CUSTOM_LENGTH > 0
#define NET_LINK_ADDR_MAX_LENGTH CONFIG_NET_LINK_ADDR_CUSTOM_LENGTH
#elif defined(CONFIG_NET_L2_PHY_IEEE802154) || defined(CONFIG_NET_L2_PPP)
#define NET_LINK_ADDR_MAX_LENGTH 8
#else
#define NET_LINK_ADDR_MAX_LENGTH 6
Expand Down
8 changes: 8 additions & 0 deletions subsys/net/ip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,14 @@ config NET_HEADERS_ALWAYS_CONTIGUOUS
NET_BUF_FIXED_DATA_SIZE enabled and NET_BUF_DATA_SIZE of 128 for
instance.

config NET_LINK_ADDR_CUSTOM_LENGTH
int "Size of custom link layer address length"
default 0
help
This option allows to define custom link layer address length
if your link layer technology is not supported directly.
As a default, custom link layer address length is not used.

# If we are running network tests found in tests/net, then the NET_TEST is
# set and in that case we default to Dummy L2 layer as typically the tests
# use that by default.
Expand Down
10 changes: 9 additions & 1 deletion subsys/net/ip/Kconfig.mgmt
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,23 @@ config NET_MGMT_EVENT_INFO
and listeners will then be able to get it. Such information depends
on the type of event.

if NET_MGMT_EVENT_INFO
config NET_MGMT_EVENT_INFO_DEFAULT_DATA_SIZE
int "Default size of event information data"
default 32
help
The default size of the data which can be passed along with an event.

config NET_MGMT_EVENT_MONITOR
bool "Monitor network events from net shell"
depends on NET_SHELL && NET_MGMT_EVENT_INFO
depends on NET_SHELL
help
Allow user to monitor network events from net shell using
"net events [on|off]" command. The monitoring is disabled by
default. Note that you should probably increase the value of
NET_MGMT_EVENT_QUEUE_SIZE from the default in order not to miss
any events.
endif # NET_MGMT_EVENT_INFO

config NET_MGMT_EVENT_MONITOR_STACK_SIZE
int "Size of the stack allocated for the event_mon_stack thread"
Expand Down
2 changes: 1 addition & 1 deletion subsys/net/ip/net_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <zephyr/net/wifi_mgmt.h>
#endif /* CONFIG_NET_L2_WIFI_MGMT */

#define DEFAULT_NET_EVENT_INFO_SIZE 32
#define DEFAULT_NET_EVENT_INFO_SIZE CONFIG_NET_MGMT_EVENT_INFO_DEFAULT_DATA_SIZE
/* NOTE: Update this union with all *big* event info structs */
union net_mgmt_events {
#if defined(CONFIG_NET_DHCPV4)
Expand Down