MCPcopy Index your code
hub / github.com/google/gopacket / Type

Method Type

layers/icmp6.go:125–127  ·  view source on GitHub ↗

Type returns the ICMPv6 type field.

()

Source from the content-addressed store, hash-verified

123
124// Type returns the ICMPv6 type field.
125func (a ICMPv6TypeCode) Type() uint8 {
126 return uint8(a >> 8)
127}
128
129// Code returns the ICMPv6 code field.
130func (a ICMPv6TypeCode) Code() uint8 {

Callers 7

StringMethod · 0.95
GoStringMethod · 0.95
layerStringFunction · 0.45
baseLayerStringFunction · 0.45
layerGoStringFunction · 0.45
NextLayerTypeMethod · 0.45

Calls

no outgoing calls

Tested by 1