net: context: Add an opaque handle for TCP2

Add an opaque handle for TCP2.

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
Oleg Zhurakivskyy 2019-10-03 19:16:15 +03:00 committed by Jukka Rissanen
commit 9666f2201e

View file

@ -244,10 +244,15 @@ struct net_context {
net_pkt_get_pool_func_t data_pool;
#endif /* CONFIG_NET_CONTEXT_NET_PKT_POOL */
#if defined(CONFIG_NET_TCP)
#if defined(CONFIG_NET_TCP1)
/** TCP connection information */
struct net_tcp *tcp;
#endif /* CONFIG_NET_TCP */
#endif /* CONFIG_NET_TCP1 */
#if defined(CONFIG_NET_TCP2)
/** TCP connection information */
void *tcp;
#endif /* CONFIG_NET_TCP2 */
#if defined(CONFIG_NET_CONTEXT_SYNC_RECV)
/**