Skip to content
Permalink
Browse files

net: connection: The connection logic was not init properly

We need to initialize the connection.c for UDP, TCP, PACKET socket
and CANBUS sockets.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar committed May 17, 2019
1 parent 1e98928 commit 7e37fd7203f267416792242ea7b0f189f98a732c
Showing with 7 additions and 3 deletions.
  1. +7 −3 subsys/net/ip/net_core.c
@@ -426,9 +426,13 @@ static inline void l3_init(void)

net_ipv4_autoconf_init();

#if defined(CONFIG_NET_UDP) || defined(CONFIG_NET_TCP)
net_conn_init();
#endif
if (IS_ENABLED(CONFIG_NET_UDP) ||
IS_ENABLED(CONFIG_NET_TCP) ||
IS_ENABLED(CONFIG_NET_SOCKETS_PACKET) ||
IS_ENABLED(CONFIG_NET_SOCKETS_CAN)) {
net_conn_init();
}

net_tcp_init();

net_route_init();

0 comments on commit 7e37fd7

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