Skip to content

Commit

Permalink
Make Flags of proper width (aws#2005)
Browse files Browse the repository at this point in the history
* Make Flags of proper width

The TCP flags are not of proper width according to the header in the TCP protocol.

* Update after Archit's comments
  • Loading branch information
AniruddhaKanhere authored May 13, 2020
1 parent 7ebc724 commit b467b68
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ the defined MTU size can contain at least a complete TCP packet. */
/*
* The meaning of the TCP flags:
*/
#define ipTCP_FLAG_FIN 0x0001u /* No more data from sender */
#define ipTCP_FLAG_SYN 0x0002u /* Synchronize sequence numbers */
#define ipTCP_FLAG_RST 0x0004u /* Reset the connection */
#define ipTCP_FLAG_PSH 0x0008u /* Push function: please push buffered data to the recv application */
#define ipTCP_FLAG_ACK 0x0010u /* Acknowledgment field is significant */
#define ipTCP_FLAG_URG 0x0020u /* Urgent pointer field is significant */
#define ipTCP_FLAG_FIN ( ( uint8_t) 0x01u ) /* No more data from sender */
#define ipTCP_FLAG_SYN ( ( uint8_t) 0x02u ) /* Synchronize sequence numbers */
#define ipTCP_FLAG_RST ( ( uint8_t) 0x04u ) /* Reset the connection */
#define ipTCP_FLAG_PSH ( ( uint8_t) 0x08u ) /* Push function: please push buffered data to the recv application */
#define ipTCP_FLAG_ACK ( ( uint8_t) 0x10u ) /* Acknowledgment field is significant */
#define ipTCP_FLAG_URG ( ( uint8_t) 0x20u ) /* Urgent pointer field is significant */
#define ipTCP_FLAG_ECN 0x0040u /* ECN-Echo */
#define ipTCP_FLAG_CWR 0x0080u /* Congestion Window Reduced */
#define ipTCP_FLAG_NS 0x0100u /* ECN-nonce concealment protection */
Expand Down

0 comments on commit b467b68

Please sign in to comment.