SLIP



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.



0xC0

0xDB,0xDC

0xDB,0xDB

0xC0

|____________________________ IP-datagram ___________________________|