Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
slip_common.h File Reference

Go to the source code of this file.

Data Structures

struct  slip_proto
 

Macros

#define BUF_SIZE   1500
 
#define ENC_BUF_SIZE   (2 * BUF_SIZE + 2)
 
#define SLIP_END   0300 /* indicates end of frame */
 
#define SLIP_ESC   0333 /* indicates byte stuffing */
 
#define SLIP_ESC_END   0334 /* ESC ESC_END means END 'data' */
 
#define SLIP_ESC_ESC   0335 /* ESC ESC_ESC means ESC 'data' */
 

Functions

int slip_proto_read (int fd, void *buf, int len, struct slip_proto *slip)
 
int slip_proto_write (int fd, void *buf, int len, struct slip_proto *slip)
 

Macro Definition Documentation

#define BUF_SIZE   1500

Definition at line 4 of file slip_common.h.

#define ENC_BUF_SIZE   (2 * BUF_SIZE + 2)

Definition at line 7 of file slip_common.h.

#define SLIP_END   0300 /* indicates end of frame */

Definition at line 10 of file slip_common.h.

#define SLIP_ESC   0333 /* indicates byte stuffing */

Definition at line 11 of file slip_common.h.

#define SLIP_ESC_END   0334 /* ESC ESC_END means END 'data' */

Definition at line 12 of file slip_common.h.

#define SLIP_ESC_ESC   0335 /* ESC ESC_ESC means ESC 'data' */

Definition at line 13 of file slip_common.h.

Function Documentation

int slip_proto_read ( int  fd,
void buf,
int  len,
struct slip_proto slip 
)

Definition at line 5 of file slip_common.c.

int slip_proto_write ( int  fd,
void buf,
int  len,
struct slip_proto slip 
)

Definition at line 45 of file slip_common.c.