#[non_exhaustive]pub enum Kind {
Datagram = 1,
Raw = 2,
Launch = 3,
}Expand description
A kind of packet socket.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Datagram = 1
Frames’ payloads, the link-layer header taken off and put on.
Raw = 2
Whole frames, header and all.
Launch = 3
Whole frames, each sent at the launch time it carries on CLOCK_TAI
(SO_TXTIME), for the ETF queue discipline to hand to a card that
sends it at that time, and the frames ETF drops reported on the
socket’s error queue. A departure time on CLOCK_TAI takes
CAP_NET_ADMIN as well as CAP_NET_RAW: a helper without it answers
EPERM, as one older than this kind answers EINVAL, and the app
takes a Kind::Raw socket instead. The drops come on the error
queue as SO_EE_ORIGIN_TXTIME, so an app also taking transmit time
stamps on it tells the two apart by origin. A launch time with no
ETF on the frame’s queue is ignored, and the frame sent at once.