Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64-bit integer AVPs will be serialized as a 4-byte Integer #4

Open
ofraiwan opened this issue Feb 15, 2022 · 0 comments
Open

64-bit integer AVPs will be serialized as a 4-byte Integer #4

ofraiwan opened this issue Feb 15, 2022 · 0 comments

Comments

@ofraiwan
Copy link

ofraiwan commented Feb 15, 2022

This case occurs when the AVP value should be a 64-bit integer per the Diameter standards.
So, constructing an AVP using the DiameterAVP class will serialize the data as a 32-bit integer.

avp = DiameterAVP(code=439, data=1)

Checking the avp.data attribute, you will see only 4 bytes where they should be 8 bytes.

Ref: https://github.com/heimiricmr/bromelia/blob/master/docs/avps.md#constructor

@ofraiwan ofraiwan changed the title 64-bit integer AVPs will be serialized as a 4-bit Integer 64-bit integer AVPs will be serialized as a 4-byte Integer Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant