Documentation ¶
Index ¶
- Constants
- func CalcCSum(h L4Header, addr, pld common.RawBytes) (common.RawBytes, error)
- func CheckCSum(h L4Header, addr, pld common.RawBytes) error
- func SetCSum(h L4Header, addr, pld common.RawBytes) error
- type L4Header
- type TCP
- type UDP
- func (u *UDP) Copy() L4Header
- func (u *UDP) GetCSum() common.RawBytes
- func (u *UDP) L4Len() int
- func (u *UDP) L4Type() common.L4ProtocolType
- func (u *UDP) Pack(csum bool) (common.RawBytes, error)
- func (u *UDP) Parse(b common.RawBytes) error
- func (u *UDP) Reverse()
- func (u *UDP) SetCSum(csum common.RawBytes)
- func (u *UDP) SetPldLen(pldLen int)
- func (u *UDP) String() string
- func (u *UDP) Validate(plen int) error
- func (u *UDP) Write(b common.RawBytes) error
Constants ¶
View Source
const ErrorInvalidChksum = "Invalid L4 checksum"
View Source
const (
UDPLen = 8
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.