RealtimeCompLab2
Dependencies: mbed
Fork of PPP-Blinky by
Diff: PPP-Blinky/ppp-blinky.h
- Revision:
- 165:c47826d07e0d
- Parent:
- 164:c3de3d212c4b
- Child:
- 167:ff8a2d8beeb1
--- a/PPP-Blinky/ppp-blinky.h Sun Sep 03 18:20:37 2017 +0000 +++ b/PPP-Blinky/ppp-blinky.h Sun Sep 03 19:19:03 2017 +0000 @@ -88,3 +88,13 @@ unsigned int checkSumR : 16; // byte reversed char data [0]; // data area } udpHeaderType; + +/// ICMP header. +typedef struct { + unsigned int type : 8; + unsigned int code : 8; + unsigned int checkSumR : 16; // byte reversed + unsigned int idR : 16; // byte reversed + unsigned int sequenceR : 16; // byte reversed + char data [0]; // data area +} icmpHeaderType;