mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
tcp.h: Add TCP_SEQ_ADD
This commit is contained in:
committed by
Masayuki Ishikawa
parent
022a2490d1
commit
eeafe070ec
@@ -93,6 +93,7 @@
|
||||
#define TCP_SEQ_LTE(a, b) (!TCP_SEQ_GT(a, b))
|
||||
#define TCP_SEQ_GTE(a, b) (!TCP_SEQ_LT(a, b))
|
||||
|
||||
#define TCP_SEQ_ADD(a, b) ((uint32_t)((a) + (b)))
|
||||
#define TCP_SEQ_SUB(a, b) ((uint32_t)((a) - (b)))
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user