A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
tcp/tcphdr.h@137:cf6e7db0e985, 2019-04-07 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun Apr 07 11:05:16 2019 +0000
- Revision:
- 137:cf6e7db0e985
- Parent:
- 74:c3756bfa960e
Working version before try changing TCP header
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 73:43e3d7fb3d60 | 1 | extern void TcpHdrLog(uint16_t calculatedChecksum); |
andrewboyson | 73:43e3d7fb3d60 | 2 | |
andrewboyson | 74:c3756bfa960e | 3 | extern void TcpHdrReadFromPacket(void* pPacket); |
andrewboyson | 73:43e3d7fb3d60 | 4 | |
andrewboyson | 74:c3756bfa960e | 5 | extern void TcpHdrWriteToPacket(void* pPacket); |
andrewboyson | 137:cf6e7db0e985 | 6 | extern void TcpHdrSetChecksum(char* pPacket, uint16_t value); |
andrewboyson | 73:43e3d7fb3d60 | 7 | |
andrewboyson | 74:c3756bfa960e | 8 | extern void TcpHdrMakeEmpty(void); |
andrewboyson | 73:43e3d7fb3d60 | 9 | |
andrewboyson | 73:43e3d7fb3d60 | 10 | extern uint16_t TcpHdrSrcPort; |
andrewboyson | 73:43e3d7fb3d60 | 11 | extern uint16_t TcpHdrDstPort; |
andrewboyson | 73:43e3d7fb3d60 | 12 | extern uint32_t TcpHdrSeqNum; |
andrewboyson | 73:43e3d7fb3d60 | 13 | extern uint32_t TcpHdrAckNum; |
andrewboyson | 74:c3756bfa960e | 14 | extern int TcpHdrSizeGet(void); |
andrewboyson | 73:43e3d7fb3d60 | 15 | extern bool TcpHdrURG; //indicates that the Urgent pointer field is significant |
andrewboyson | 73:43e3d7fb3d60 | 16 | extern bool TcpHdrACK; //indicates that the Acknowledgment field is significant. All packets after the initial SYN packet sent by the client should have this flag set. |
andrewboyson | 73:43e3d7fb3d60 | 17 | extern bool TcpHdrPSH; //Push function. Asks to push the buffered data to the receiving application. |
andrewboyson | 73:43e3d7fb3d60 | 18 | extern bool TcpHdrRST; //Reset the connection |
andrewboyson | 73:43e3d7fb3d60 | 19 | extern bool TcpHdrSYN; //Synchronize sequence numbers. Only the first packet sent from each end should have this flag set. Some other flags and fields change meaning based on this flag, and some are only valid for when it is set, and others when it is clear. |
andrewboyson | 73:43e3d7fb3d60 | 20 | extern bool TcpHdrFIN; //No more data from sender |
andrewboyson | 73:43e3d7fb3d60 | 21 | extern uint16_t TcpHdrWindow; |
andrewboyson | 73:43e3d7fb3d60 | 22 | extern uint16_t TcpHdrChecksum; |
andrewboyson | 73:43e3d7fb3d60 | 23 | extern uint16_t TcpHdrUrgent; |
andrewboyson | 73:43e3d7fb3d60 | 24 | |
andrewboyson | 74:c3756bfa960e | 25 | extern uint16_t TcpHdrMssGet(void); |
andrewboyson | 74:c3756bfa960e | 26 | extern void TcpHdrMssSet(uint16_t value); |