Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of webserverBlinky by
Diff: PPP-Blinky/ppp-blinky.h
- Revision:
- 164:c3de3d212c4b
- Parent:
- 163:d1b4328e9f08
- Child:
- 165:c47826d07e0d
--- a/PPP-Blinky/ppp-blinky.h Sun Sep 03 01:29:01 2017 +0000 +++ b/PPP-Blinky/ppp-blinky.h Sun Sep 03 18:20:37 2017 +0000 @@ -41,7 +41,7 @@ unsigned int dstAdrR; // destination IP address } ipHeaderType; -/// IP pseudoheader +/// IP pseudoheader. Used in TCP/UDP checksum calculations. typedef struct { union { char start [0]; @@ -80,10 +80,11 @@ unsigned int tcpOptions[10]; // up to 10 words of options possible } tcpHeaderType; +/// UDP header. typedef struct { - unsigned int srcPortR : 16, // byte reversed - dstPortR : 16; // byte reversed - unsigned int lengthR : 16, // byte reversed - checkSumR : 16; // byte reversed + unsigned int srcPortR : 16; // byte reversed + unsigned int dstPortR : 16; // byte reversed + unsigned int lengthR : 16; // byte reversed + unsigned int checkSumR : 16; // byte reversed char data [0]; // data area } udpHeaderType;