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
Revision 122:963abcbff21e, committed 2017-08-08
- Comitter:
- nixnax
- Date:
- Tue Aug 08 20:02:35 2017 +0000
- Parent:
- 121:705679672685
- Child:
- 123:fc64fc6caae0
- Commit message:
- Renamed to PPP_max_size
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Aug 08 19:57:06 2017 +0000 +++ b/main.cpp Tue Aug 08 20:02:35 2017 +0000 @@ -121,8 +121,9 @@ struct { int len; // number of bytes in buffer int crc; // PPP CRC (frame check) -#define TCP_max_size 3000 - char buf[TCP_max_size]; // send and receive buffer large enough for unstuffed (decoded) hdlc frames +#define PPP_max_size 2500 + // we are assuming 1000 bytes more MTU size of 1500- due to the PPP encoding of special bytes + char buf[PPP_max_size]; // send and receive buffer large enough for raw, encoded PPP/HDLC frames } pkt; // ppp buffer objects struct { int frameStartIndex; // frame start marker