Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + const PacketInfoHeaderSize + func Open(name string) (int, error) — linux/amd64 + func OpenTAP(name string) (int, error) — linux/amd64 + type Device struct + func (d *Device) Flags() Flags + func (d *Device) MTU() (uint32, error) + func (d *Device) Name() string + func (d *Device) Read() (*buffer.View, error) + func (d *Device) Readiness(mask waiter.EventMask) waiter.EventMask + func (d *Device) Release(ctx context.Context) + func (d *Device) SetIff(s *stack.Stack, name string, flags Flags) error + func (d *Device) Write(data *buffer.View) (int64, error) + func (d *Device) WriteNotify() + type Flags struct + NoPacketInfo bool + TAP bool + TUN bool + type PacketInfoFields struct + Flags uint16 + Protocol tcpip.NetworkProtocolNumber + type PacketInfoHeader []byte + func (h PacketInfoHeader) Encode(f *PacketInfoFields) + func (h PacketInfoHeader) Flags() uint16 + func (h PacketInfoHeader) Protocol() tcpip.NetworkProtocolNumber