SLIP 프로토콜은 시리얼 라인을 통해 IP 패킷을 전송하는 가장 간단한 방법이다. 이것은 어떠한 데이터 절단이나 에러제어를 제공하지 않는다. 따라서 오늘날 널리 사용되지는 않는다.
This SLIP implementation requires two functions for accessing the serial device: slipdev_char_poll() and slipdev_char_put(). These must be implemented specifically for the system on which the SLIP protocol is to be run.
이 SLIP 구현은 시리얼 디바이스를 접근하기 위해 두 가지 기능을 요구한다. slipdev_char_poll()과 slipdev_char_put(). 이들 함수는 SLIP 프로토콜이 실행되는 시스템에서 구현되어야 한다.
Files | |
| file | slipdev.c |
| SLIP protocol implementation. SLIP 프로토콜이 구현. | |
| file | slipdev.h |
| SLIP header file. SLIP 헤더 파일. | |
Functions | |
| void | slipdev_char_put (u8_t c) |
| Put a character on the serial device. 문자를 시리얼 디바이스에 넣는다. | |
| u8_t | slipdev_char_poll (u8_t *c) |
| Poll the serial device for a character. 시리얼 디바이스에서 문자를 폴링. | |
| void | slipdev_init (void) |
| Initialize the SLIP module. SLIP 모듈 초기화. | |
| void | slipdev_send (void) |
| Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol. SLIP 프로토콜을 이용해서 uip_buf와 uip_appdata 버퍼에 있는 패킷을 송신. | |
| u16_t | slipdev_poll (void) |
| Poll the SLIP device for an available packet. SLIP 디바이스에서 유효한 패킷을 폴링. | |
|
|
Poll the serial device for a character. 시리얼 디바이스에서 문자를 폴링.
이 함수는 시리얼 디바이스에서 문자를 폴링하기 위해 SLIP에 의해 사용된다. 이 함수는 SLIP 프로토콜이 실행되는 시스템에서 구현되어야 한다.
이함수는 문자가 유효하든 안하든 즉시 리턴해야 한다. 문자가 유효하면 인자 c에의해 지원되는 포인터가 가리키는 메모리 영역에 저장되어야 한다.
|
|
|
Put a character on the serial device. 문자를 시리얼 디바이스에 넣는다.
이함수는 문자를 시리얼 디바이스에 넣기 위해 SLIP에 의해 사용된다. 이 함수는 SLIP 프로토콜이 실행되는 시스템에서 구현되어야 한다.
|
|
|
Initialize the SLIP module. SLIP 모듈 초기화.
이 함수는 RS232 디바이스가 아닌 SLIP 부분을 초기화한다. |
|
|
Poll the SLIP device for an available packet. SLIP 디바이스에서 유효한 패킷을 폴링.
이 함수는 패킷이 유효한지를 검사하기 위해 SLIP 디바이스를 폴링한다. 이 함수는 RS232 인터페이스로부터 유효한 모든 바이트가 읽혀질 버퍼를 사용한다. 버퍼에서 풀 패킷이 읽혀지면 패킷은 uip_buf 버퍼로 복사되고 패킷 길이가 리턴된다.
|
Here is the call graph for this function:
다음은 이함수에 대한 콜그래프이다.

|
|
Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol. SLIP 프로토콜을 이용해서 uip_buf와 uip_appdata 버퍼에 있는 패킷을 송신.
패킷의 첫 40바이트(IP & TCP 헤더)는 uip_buf 버퍼에서 읽혀지고 다음 바이트(어플리케이션 데이터)는 uip_appdata버퍼에서 읽혀진다. |
Here is the call graph for this function:
다음은 이함수에 대한 콜그래프이다.

1.3.3