Skip to content
Permalink
Browse files

net: lwm2m: fix IP address max calc in conn mon obj

When checking for total IP address counts, don't check
CONFIG_NET_IF_MAX_IPV6_COUNT twice.  This was a typo for
CONFIG_NET_IF_MAX_IPV4_COUNT.

This was reported by IRC user: retfie

Signed-off-by: Michael Scott <mike@foundries.io>
  • Loading branch information...
mike-scott authored and jukkar committed Aug 9, 2019
1 parent 226b338 commit 07f9e8beeaceb67360e0985a7650690083fbacaa
Showing with 1 addition and 1 deletion.
  1. +1 −1 subsys/net/lib/lwm2m/lwm2m_obj_connmon.c
@@ -39,7 +39,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#define CONNMON_APN_MAX CONFIG_LWM2M_CONN_MON_APN_MAX

#if defined(CONFIG_NET_IF_MAX_IPV6_COUNT) \
&& defined(CONFIG_NET_IF_MAX_IPV6_COUNT)
&& defined(CONFIG_NET_IF_MAX_IPV4_COUNT)
#define CONNMON_IP_ADDRESS_MAX (CONFIG_NET_IF_MAX_IPV6_COUNT + \
CONFIG_NET_IF_MAX_IPV4_COUNT)
#elif defined(CONFIG_NET_IF_MAX_IPV6_COUNT)

0 comments on commit 07f9e8b

Please sign in to comment.
You can’t perform that action at this time.