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:
parent
2435629f61
commit
9c3fc831b9
1 changed files with 7 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue