Hi there
Without wading through the entire source code, I expect this to be
~Packet~Packet~, vs ~Packet~~Packet~. Both are OK. ~PacketPacket~ is
not! Synchronous PPP will send ~~~~~ when idle, asynchronous PPP will not.
Linux has a freaky optimization in the LCP ping. It will only send a LCP
ping when there hasn't been any other data for some time.
Furthermore, the number of config requests in one LCP packet may vary.
A PPP implementation without '~' at packet boundaries seems broken to me
(See RFC). Are you this is what is happening? Make a raw data dump.
Again, RasPi serial ports are broken. USB-Serial converters are broken.
They do drop bytes (including '~'). Use decent serial hardware or use
Ethernet for TCP/IP.
And you still haven't explained what you are trying to do. Draw some
ASCII art.
Regards,
Rob