Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions layers/gtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func (g *GTPv1U) NextLayerType() gopacket.LayerType {
if len(g.LayerPayload()) == 0 {
return gopacket.LayerTypeZero
}
if g.MessageType != 255 {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does this definition come from? I'm looking at 3GPP TS 29.060 section 7.1 and it doesn't align with this condition.

Copy link
Copy Markdown
Contributor Author

@mejedi mejedi Apr 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version you are referring to defines T-PDU (tunneled traffic such as IPv4 or IPv6) and G-PDU in section 3.

In 7.1 it says that G-PDU is message type 255.

return gopacket.LayerTypePayload
}
version := uint8(g.LayerPayload()[0]) >> 4
if version == 4 {
return LayerTypeIPv4
Expand Down