Skip to content

Commit

Permalink
Merge pull request #285 from scruaux/ipv6-wrong-pdp-type-organization…
Browse files Browse the repository at this point in the history
…-in-gtpv1-end-user-address

fix: wrong PDP Type in GTPv1 EUA
  • Loading branch information
wmnsk authored Jul 5, 2024
2 parents 2f00279 + 51b8244 commit c6bbec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gtpv1/ie/end-user-address.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func newEUAddrV6(v6 []byte) *IE {
EndUserAddress,
make([]byte, 18),
)
e.Payload = make([]byte, 18)
e.Payload[0] = pdpTypeIETF
e.Payload[1] = 0x57
copy(e.Payload[2:], v6)

Expand Down
2 changes: 1 addition & 1 deletion gtpv1/ie/ie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestIEs(t *testing.T) {
"EndUserAddress/v6",
ie.NewEndUserAddress("2001::1"),
[]byte{
0x80, 0x00, 0x12, 0x00,
0x80, 0x00, 0x12, 0xf1,
0x57, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
},
}, {
Expand Down

0 comments on commit c6bbec1

Please sign in to comment.