net_app_ctx maintains multiple net contexts(net_ctx). But when http api's wants to reply or send some data, its always choose the first net_context in the array, which is not correct always. net_app_get_net_pkt_with_dst() api will select proper context based on destination address. So with the help of new api in net_app, http can select proper context and send packets. To achieve this, desination address is provided in http_recv_cb_t and http_connect_cb_t callbacks. Also chaged relevant API's to provide destination address in http message preparation methods. Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
CONFIG_NETWORKING=y
|
|
CONFIG_NET_TCP=y
|
|
CONFIG_ENTROPY_GENERATOR=y
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
CONFIG_NET_LOG=y
|
|
CONFIG_INIT_STACKS=y
|
|
|
|
CONFIG_NET_PKT_RX_COUNT=32
|
|
CONFIG_NET_PKT_TX_COUNT=32
|
|
CONFIG_NET_BUF_RX_COUNT=32
|
|
CONFIG_NET_BUF_TX_COUNT=32
|
|
|
|
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=2
|
|
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=4
|
|
|
|
CONFIG_NET_MAX_CONTEXTS=16
|
|
|
|
CONFIG_SYS_LOG_SHOW_COLOR=y
|
|
CONFIG_SYS_LOG_NET_LEVEL=4
|
|
CONFIG_NET_DEBUG_HTTP=n
|
|
CONFIG_NET_DEBUG_APP=n
|
|
CONFIG_NET_DEBUG_CORE=n
|
|
CONFIG_NET_DEBUG_IF=n
|
|
CONFIG_NET_DEBUG_IPV6=n
|
|
CONFIG_NET_DEBUG_CONN=n
|
|
CONFIG_NET_DEBUG_CONTEXT=n
|
|
CONFIG_NET_DEBUG_TCP=n
|
|
|
|
CONFIG_HTTP=y
|
|
CONFIG_HTTP_CLIENT=y
|
|
|
|
CONFIG_NET_IPV6=y
|
|
CONFIG_NET_IPV4=y
|
|
#CONFIG_NET_DHCPV4=y
|
|
|
|
CONFIG_HTTPS=n
|
|
CONFIG_MBEDTLS=n
|
|
|
|
CONFIG_NET_APP_SETTINGS=y
|
|
CONFIG_NET_APP_MY_IPV6_ADDR="2001:db8::1"
|
|
CONFIG_NET_APP_MY_IPV4_ADDR="192.0.2.1"
|
|
CONFIG_NET_APP_PEER_IPV6_ADDR="2001:db8::2"
|
|
CONFIG_NET_APP_PEER_IPV4_ADDR="192.0.2.2"
|
|
|
|
CONFIG_NET_APP_NEED_IPV6=y
|
|
CONFIG_NET_APP_NEED_IPV4=y
|
|
|
|
CONFIG_NET_SHELL=y
|
|
CONFIG_NET_STATISTICS=y
|
|
|
|
CONFIG_NET_MGMT=y
|
|
CONFIG_NET_MGMT_EVENT=y
|
|
|
|
CONFIG_MAIN_STACK_SIZE=2048
|