Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_PING_PAYLOAD string = "abcdefghijklmnopqrstuvwxyz"
View Source
const DEFAULT_TTL uint8 = 64
Variables ¶
View Source
var LayerTypePort = gopacket.RegisterLayerType(1001, gopacket.LayerTypeMetadata{Name: "Port", Decoder: gopacket.DecodeFunc(decodePort)})
Register the port layer, giving it name "Port" and its decoder Note: num must be unique across all decoders
Functions ¶
func GenICMPEchoReq ¶
Types ¶
type Port ¶
Port is the custom P4 frame with ingress/egress port number
func (*Port) DecodeFromBytes ¶
func (p *Port) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
func (*Port) SerializeTo ¶
func (p *Port) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
Click to show internal directories.
Click to hide internal directories.