diff --git a/gtpv2/conn.go b/gtpv2/conn.go index 44f358c2..8173c4a7 100644 --- a/gtpv2/conn.go +++ b/gtpv2/conn.go @@ -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 }