slip

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	END     byte = 0xC0 // indicates end of packet
	ESC     byte = 0xDB // indicates byte stuffing
	ESC_END byte = 0xDC // ESC ESC_END means END data byte
	ESC_ESC byte = 0xDD // ESC ESC_ESC means ESC data byte
)

SLIP special character codes

Variables

This section is empty.

Functions

func Pack

func Pack(PDU []byte) (SDU []byte)

*

  • Serial Line IP PACK
  • Service Data Unit (SDU) 指本层封包后产生的数据单元
  • Protocol Data Unit (PDU) 指上层协议数据单元

func Unpack

func Unpack(SDU []byte) (PDU []byte, err error)

*

  • Serial Line IP UNPACK
  • Service Data Unit (SDU) 指本层封包后产生的数据单元
  • Protocol Data Unit (PDU) 指上层协议数据单元

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL