-
Notifications
You must be signed in to change notification settings - Fork 2
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
Corrected NTCIP1218 msgRepeatsOption value #68
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is important to note that x00 isn't incorrect entirely. It is incorrect for the context of deploying an unsigned TIM.
Will deploying a signed TIM using 0x80 work? |
If it is deployed to an RSU to be broadcasted from a RSU it will not work. 0x80 tells the RSU to sign the message before broadcasting it. This will cause an already signed message to be doubly wrapped with a 1609.2 header. In summary: 0xC0 shouldn't be used ever because it achieves some weird hybrid of the two. |
@drewjj do we need a way to configure this then, to allow a choice of whether to have the RSU sign or just forward? |
Yeah, that would be ideal if we want the ODE to be flexible. This pr seems like it has half the solution. #67 |
Marking this as a draft for now until we modify the functionality to use 0x00 / 0x80 depending on context. |
PR Details
Description
Problem
The SnmpNTCIP1218Protocol class is currently using 0x00 for the msg repeats options value, which is incorrect (for the context of deploying an unsigned TIM). It should be using 0x80.
Solution
The value being used for the msg repeats options value in the SnmpNTCIP1218Protocol class has been changed to 0x80.
Related Issue
No related GitHub issue.
Motivation and Context
The SnmpNTCIP1218Protocol class should use the correct value for the msg repeats option value to ensure a successful deposit.
How Has This Been Tested?
Depositing to an RSU has been verified to work with this change.
Types of changes
Checklist:
ODE Contributing Guide