Versions in this module Expand all Collapse all v0 v0.342.0 Aug 12, 2016 v0.341.0 Aug 9, 2016 v0.340.0 Aug 5, 2016 v0.339.0 Jul 4, 2016 v0.338.0 Jun 8, 2016 v0.337.0 Apr 14, 2016 v0.336.0 Apr 8, 2016 v0.335.0 Mar 23, 2016 v0.334.0 Feb 23, 2016 v0.333.0 Feb 18, 2016 v0.332.0 Feb 1, 2016 v0.331.0 Jan 20, 2016 v0.330.0 Dec 10, 2015 v0.329.0 Dec 2, 2015 v0.328.0 Nov 13, 2015 v0.327.0 Nov 11, 2015 Changes in this version + func IPv6PseudoHeader(src, dst net.IP) []byte + func ParseIPv4Header(b []byte) (*ipv4.Header, error) + type DefaultMessageBody struct + Data []byte + func (p *DefaultMessageBody) Len(proto int) int + func (p *DefaultMessageBody) Marshal(proto int) ([]byte, error) + 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 Extension interface + Len func(proto int) int + Marshal func(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 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