RealtimeCompLab2
Dependencies: mbed
Fork of PPP-Blinky by
Diff: PPP-Blinky/ppp-blinky.h
- Revision:
- 161:d59f778bc8ab
- Parent:
- 160:bd701ad564cb
- Child:
- 163:d1b4328e9f08
--- a/PPP-Blinky/ppp-blinky.h Sat Sep 02 17:35:29 2017 +0000 +++ b/PPP-Blinky/ppp-blinky.h Sat Sep 02 17:58:39 2017 +0000 @@ -35,7 +35,7 @@ unsigned int ttl : 8; unsigned int protocol : 8; // next protocol - unsigned int checksumR : 16; + unsigned int checksumR : 16; // ip checksum, byte reversed unsigned int srcAdrR; // source IP address unsigned int dstAdrR; // destination IP address @@ -44,7 +44,7 @@ /// IP pseudoheader typedef struct { union { - unsigned char start [0]; + char start [0]; unsigned int srcAdrR; // source IP address }; unsigned int dstAdrR; // destination IP address