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

Set NTCIP1218 msgRepeatOption value based on context #75

Merged
merged 4 commits into from
May 21, 2024

Conversation

dmccoystephenson
Copy link
Member

@dmccoystephenson dmccoystephenson commented May 3, 2024

PR Details

Description

The NTCIP1218 msgRepeatOptions value passed to RSUs is now set depending on the signing context of the ODE. If the ODE is configured to sign messages for RSUs, the value will be set to 0x00 to ensure the message doesn't get double-signed. If the ODE is configured to forward messages to RSUs without signing them first, the value will be set to 0x80 to ensure the RSU signs them before broadcasting.

Dependent PR

It should be noted that this PR depends on #67 and should be merged after.

Related Issue

No related GitHub issue.

Motivation and Context

The correct value to be set for the NTCIP1218 msgRepeatOption depends on whether or not the message being forwarded to an RSU is signed. Previously, this value was hardcoded.

How Has This Been Tested?

Unit tests have been updated and verified to be passing.

It should be noted that these changes have not been tested against an RSU, but using 0x80 has previously been verified to result in a successful deposit when depositing unsigned messages to an RSU expecting the NTCIP1218 protocol.

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
    ODE Contributing Guide
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@dmccoystephenson dmccoystephenson marked this pull request as ready for review May 7, 2024 19:31
Copy link

@mwodahl mwodahl left a 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!

Copy link
Collaborator

@drewjj drewjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good and seems reasonable to me. Hex values all make sense to me.

@dmccoystephenson dmccoystephenson merged commit ff3eaa9 into dev May 21, 2024
4 checks passed
@dmccoystephenson dmccoystephenson deleted the feature/set-msgRepeatOptions-based-on-context branch May 21, 2024 16:53
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

Successfully merging this pull request may close these issues.

3 participants