Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 2 additions & 8 deletions encoding/args-mob-session.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,12 @@ func (a *ArgsMobSession) QFI() uint8 {

// R returns the Reflective QoS Indication for this ArgsMobSession.
func (a *ArgsMobSession) R() bool {
if a.r == 0 {
return false
}
return true
return a.r != 0
}

// U returns the U bit for this ArgsMobSession.
func (a *ArgsMobSession) U() bool {
if a.u == 0 {
return false
}
return true
return a.u != 0
}

// PDUSessionID returns the PDU Session Identifier for this ArgsMobSession. The GTP-U equivalent is TEID.
Expand Down
3 changes: 3 additions & 0 deletions encoding/m-gtp4-ipv6-dst.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func ParseMGTP4IPv6Dst(ipv6Addr [16]byte, prefixLength uint) (*MGTP4IPv6Dst, err

// argMobSession extraction
argsMobSessionSlice, err := utils.FromIPv6(ipv6Addr, prefixLength+8*4, 5)
if err != nil {
return nil, err
}
argsMobSession, err := ParseArgsMobSession(argsMobSessionSlice)
if err != nil {
return nil, err
Expand Down
Loading