Commit f6f44670 authored by Jukka Rissanen's avatar Jukka Rissanen
Browse files

net: socks: Prefer setsockopt() API instead of legacy proxy api



Applications should use setsockopt() to setup the SOCKS5 proxy,
so the old API file, which is using net_context directly, is
moved SOCKS5 directory.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 9e764f13
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21,4 +21,8 @@ if(CONFIG_NET_SOCKETS_NET_MGMT)
  zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
endif()

if(CONFIG_SOCKS)
  zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/lib/socks)
endif()

zephyr_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
+5 −1
Original line number Diff line number Diff line
@@ -18,7 +18,11 @@ LOG_MODULE_REGISTER(net_sock, CONFIG_NET_SOCKETS_LOG_LEVEL);
#include <syscall_handler.h>
#include <sys/fdtable.h>
#include <sys/math_extras.h>
#include <net/socks.h>

#if defined(CONFIG_SOCKS)
#include "socks.h"
#endif

#include "../../ip/net_stats.h"

#include "sockets_internal.h"
+1 −1
Original line number Diff line number Diff line
@@ -11,9 +11,9 @@ LOG_MODULE_REGISTER(net_socks, CONFIG_SOCKS_LOG_LEVEL);

#include <zephyr.h>
#include <net/socket.h>
#include <net/socks.h>
#include <net/net_pkt.h>

#include "socks.h"
#include "socks_internal.h"

static void socks5_method_rsp_cb(struct net_context *ctx,
+0 −0

File moved.