SLIP is a simple form of encapsulation of IP-pakets over a serial connection (modem / dial-up).
Rules for SLIP framing:
* the IP-datagram is included with the flag byte 0xC0 at the beginning and on the end.
* occurs the byte 0xC0 in the IP-datagram, so it is replaced with the bytes 0xDB,0xDC.
* occurs the byte 0xDB in the IP-datagram, so it is replaced with the bytes 0xDB,0xDB.
C0h |
| DBh, DCh |
| DBh, DBh |
| C0h |
|__________________________________ IP-datagram _________________________________|