Skip to content

Commit

Permalink
Merge pull request #266 from radoslav-georgiev-flolive/fix-gtpv2c-seq…
Browse files Browse the repository at this point in the history
…uence-number-overflow-value

[gtpv2] Fix the overflow value for the sequence number (#265)
  • Loading branch information
wmnsk authored Feb 20, 2024
2 parents 3eb3e63 + 982289c commit 9063cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtpv2/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func (c *Conn) IncSequence() uint32 {
c.sequence++

// SequenceNumber is 3-octet long
if c.sequence > 0xffffff {
if c.sequence > 0x7fffff {
c.sequence = 0
}

Expand Down

0 comments on commit 9063cea

Please sign in to comment.