/* Write byte to SLIP, escape if it is END or ESC character.  */
static void slip_writeb_esc(unsigned char c)
/* Write byte to SLIP, escape if it is END or ESC character.  */
static void slip_writeb_esc(unsigned char c)
{
	switch (c) {
	case SLIP_END:
		slip_writeb(SLIP_ESC);
		slip_writeb(SLIP_ESC_END);
		break;
	case SLIP_ESC:
		slip_writeb(SLIP_ESC);
		slip_writeb(SLIP_ESC_ESC);
		break;
	default:
		slip_writeb(c);
	}
}