Documentation
¶
Index ¶
- Constants
- Variables
- func DstOptsLen(datalen int) int
- func EnableGRO(conn *net.UDPConn) error
- func IsGROEnabled(conn *net.UDPConn) bool
- func IsGROSupported(conn *net.UDPConn) bool
- func IsGSOSupported(conn *net.UDPConn) bool
- func WriteGSO(conn *net.UDPConn, b []byte, size uint16, addr netip.AddrPort, oob []byte) (n int, oobn int, err error)
- type Cmsg
- type DstOptsHdr
- type ECN
- type Iterator
- type Segments
Constants ¶
View Source
const ( DestOptTypePad0 byte = 0 DestOptTypePadN = 1 )
View Source
const DstOptsHdrLen = 2
View Source
const MaxGSOBufSize = math.MaxUint16 - 8
Variables ¶
View Source
var CmsgHdrSpace int
Functions ¶
func DstOptsLen ¶
func IsGROEnabled ¶
IsGROEnabled tests if GSO is enabled on this socket. Sending with GRO might still fail later on, if the interface doesn't support it.
func IsGROSupported ¶
IsGROSupported tests if the kernel supports GRO. Sending with GRO might still fail later on, if the interface doesn't support it.
func IsGSOSupported ¶
IsGSOSupported tests if the kernel supports GSO. Sending with GSO might still fail later on, if the interface doesn't support it.
Types ¶
type DstOptsHdr ¶
type Segments ¶
Segments represents a series of network packets in one byte array. all segments have MaxSegmentSize except the last one might be smaller.
Click to show internal directories.
Click to hide internal directories.