Versions in this module Expand all Collapse all v0 v0.33.0 Dec 24, 2024 v0.24.0 Apr 30, 2024 Changes in this version + func IPv6PseudoHeader(src, dst net.IP) []byte + func ParseIPv4Header(b []byte) (*ipv4.Header, error) + type DefaultMessageBody = RawBody + type DstUnreach struct + Data []byte + Extensions []Extension + func (p *DstUnreach) Len(proto int) int + func (p *DstUnreach) Marshal(proto int) ([]byte, error) + type Echo struct + Data []byte + ID int + Seq int + func (p *Echo) Len(proto int) int + func (p *Echo) Marshal(proto int) ([]byte, error) + type ExtendedEchoReply struct + Active bool + ID int + IPv4 bool + IPv6 bool + Seq int + State int + func (p *ExtendedEchoReply) Len(proto int) int + func (p *ExtendedEchoReply) Marshal(proto int) ([]byte, error) + type ExtendedEchoRequest struct + Extensions []Extension + ID int + Local bool + Seq int + func (p *ExtendedEchoRequest) Len(proto int) int + func (p *ExtendedEchoRequest) Marshal(proto int) ([]byte, error) + type Extension interface + Len func(proto int) int + Marshal func(proto int) ([]byte, error) + type InterfaceIdent struct + AFI int + Addr []byte + Class int + Index int + Name string + Type int + func (ifi *InterfaceIdent) Len(_ int) int + func (ifi *InterfaceIdent) Marshal(proto int) ([]byte, error) + type InterfaceInfo struct + Addr *net.IPAddr + Class int + Interface *net.Interface + Type int + func (ifi *InterfaceInfo) Len(proto int) int + func (ifi *InterfaceInfo) Marshal(proto int) ([]byte, error) + type MPLSLabel struct + Label int + S bool + TC int + TTL int + type MPLSLabelStack struct + Class int + Labels []MPLSLabel + Type int + func (ls *MPLSLabelStack) Len(proto int) int + func (ls *MPLSLabelStack) Marshal(proto int) ([]byte, error) + type Message struct + Body MessageBody + Checksum int + Code int + Type Type + func ParseMessage(proto int, b []byte) (*Message, error) + func (m *Message) Marshal(psh []byte) ([]byte, error) + type MessageBody interface + Len func(proto int) int + Marshal func(proto int) ([]byte, error) + type PacketConn struct + func ListenPacket(network, address string) (*PacketConn, error) + func (c *PacketConn) Close() error + func (c *PacketConn) IPv4PacketConn() *ipv4.PacketConn + func (c *PacketConn) IPv6PacketConn() *ipv6.PacketConn + func (c *PacketConn) LocalAddr() net.Addr + func (c *PacketConn) ReadFrom(b []byte) (int, net.Addr, error) + func (c *PacketConn) SetDeadline(t time.Time) error + func (c *PacketConn) SetReadDeadline(t time.Time) error + func (c *PacketConn) SetWriteDeadline(t time.Time) error + func (c *PacketConn) WriteTo(b []byte, dst net.Addr) (int, error) + type PacketTooBig struct + Data []byte + MTU int + func (p *PacketTooBig) Len(proto int) int + func (p *PacketTooBig) Marshal(proto int) ([]byte, error) + type ParamProb struct + Data []byte + Extensions []Extension + Pointer uintptr + func (p *ParamProb) Len(proto int) int + func (p *ParamProb) Marshal(proto int) ([]byte, error) + type RawBody struct + Data []byte + func (p *RawBody) Len(proto int) int + func (p *RawBody) Marshal(proto int) ([]byte, error) + type RawExtension struct + Data []byte + func (p *RawExtension) Len(proto int) int + func (p *RawExtension) Marshal(proto int) ([]byte, error) + type TimeExceeded struct + Data []byte + Extensions []Extension + func (p *TimeExceeded) Len(proto int) int + func (p *TimeExceeded) Marshal(proto int) ([]byte, error) + type Type interface + Protocol func() int