Documentation ¶
Index ¶
- type GTPExtensionHeader
- type GTPv1U
- func (g *GTPv1U) CanDecode() gopacket.LayerClass
- func (g *GTPv1U) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
- func (g *GTPv1U) LayerType() gopacket.LayerType
- func (g *GTPv1U) NextLayerType() gopacket.LayerType
- func (g *GTPv1U) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GTPExtensionHeader ¶
GTPExtensionHeader is used to carry extra data and enable future extensions of the GTP without the need to use another version number.
type GTPv1U ¶
type GTPv1U struct { layers.BaseLayer Version uint8 ProtocolType uint8 Reserved uint8 ExtensionHeaderFlag bool SequenceNumberFlag bool NPDUFlag bool MessageType uint8 MessageLength uint16 TEID uint32 SequenceNumber uint16 NPDU uint8 GTPExtensionHeaders []GTPExtensionHeader }
GTPv1U protocol is used to exchange user data over GTP tunnels across the Sx interfaces. Defined in https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=1595
func (*GTPv1U) CanDecode ¶
func (g *GTPv1U) CanDecode() gopacket.LayerClass
CanDecode returns a set of layers that GTP objects can decode.
func (*GTPv1U) DecodeFromBytes ¶
func (g *GTPv1U) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error
DecodeFromBytes analyses a byte slice and attempts to decode it as a GTPv1U packet
func (*GTPv1U) NextLayerType ¶
NextLayerType specifies the next layer that GoPacket should attempt to
func (*GTPv1U) SerializeTo ¶
func (g *GTPv1U) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
SerializeTo writes the serialized form of this layer into the SerializationBuffer, implementing gopacket.SerializableLayer. See the docs for gopacket.SerializableLayer for more info.