1
0
Fork 0
forked from nuttx/nuttx-update

tcp.h: Add TCP_SEQ_ADD

This commit is contained in:
YAMAMOTO Takashi 2021-06-18 09:39:52 +09:00 committed by Masayuki Ishikawa
parent 022a2490d1
commit eeafe070ec

View file

@ -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)))
/****************************************************************************