net: tcp2: Allow placing the packet into sys_slist_t

Allow placing the packet into sys_slist_t.

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
Oleg Zhurakivskyy 2019-10-16 08:40:01 +03:00 committed by Jukka Rissanen
commit 9c3fc831b9

View file

@ -129,8 +129,13 @@ struct net_pkt {
struct net_linkaddr lladdr_src;
struct net_linkaddr lladdr_dst;
#if defined(CONFIG_NET_TCP)
sys_snode_t sent_list;
#if defined(CONFIG_NET_TCP1) || defined(CONFIG_NET_TCP2)
union {
sys_snode_t sent_list;
/** Allow placing the packet into sys_slist_t */
sys_snode_t next;
};
#endif
u8_t ip_hdr_len; /* pre-filled in order to avoid func call */