diff --git a/subsys/net/ip/net_shell.c b/subsys/net/ip/net_shell.c index f29fd2a8e76..3ab8711eb31 100644 --- a/subsys/net/ip/net_shell.c +++ b/subsys/net/ip/net_shell.c @@ -3735,7 +3735,7 @@ static int cmd_net_stats(const struct shell *shell, size_t argc, char *argv[]) return 0; } -#if defined(CONFIG_NET_TCP1) && defined(CONFIG_NET_NATIVE_TCP) +#if defined(CONFIG_NET_TCP) && defined(CONFIG_NET_NATIVE_TCP) static struct net_context *tcp_ctx; static const struct shell *tcp_shell; @@ -3966,7 +3966,7 @@ static void tcp_recv_cb(struct net_context *context, struct net_pkt *pkt, static int cmd_net_tcp_connect(const struct shell *shell, size_t argc, char *argv[]) { -#if defined(CONFIG_NET_TCP1) && defined(CONFIG_NET_NATIVE_TCP) +#if defined(CONFIG_NET_TCP) && defined(CONFIG_NET_NATIVE_TCP) int arg = 0; /* tcp connect port */ @@ -4010,7 +4010,7 @@ static int cmd_net_tcp_connect(const struct shell *shell, size_t argc, static int cmd_net_tcp_send(const struct shell *shell, size_t argc, char *argv[]) { -#if defined(CONFIG_NET_TCP1) && defined(CONFIG_NET_NATIVE_TCP) +#if defined(CONFIG_NET_TCP) && defined(CONFIG_NET_NATIVE_TCP) int arg = 0; int ret; struct net_shell_user_data user_data; @@ -4047,7 +4047,7 @@ static int cmd_net_tcp_send(const struct shell *shell, size_t argc, static int cmd_net_tcp_recv(const struct shell *shell, size_t argc, char *argv[]) { -#if defined(CONFIG_NET_TCP1) && defined(CONFIG_NET_NATIVE_TCP) +#if defined(CONFIG_NET_TCP) && defined(CONFIG_NET_NATIVE_TCP) int ret; struct net_shell_user_data user_data; @@ -4076,7 +4076,7 @@ static int cmd_net_tcp_recv(const struct shell *shell, size_t argc, static int cmd_net_tcp_close(const struct shell *shell, size_t argc, char *argv[]) { -#if defined(CONFIG_NET_TCP1) && defined(CONFIG_NET_NATIVE_TCP) +#if defined(CONFIG_NET_TCP) && defined(CONFIG_NET_NATIVE_TCP) int ret; /* tcp close */