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

Fix "DeniedRequiresTLS" value for activation request #53

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

clementramirez
Copy link
Contributor

Hi,
The value corresponding to a Negative Response "Requires TLS" after sending a Routing Activation Request is invalid.

Currently this value is set to "0x06", but according to the ISO-13400 standard, the "0x06" value corresponds to an unknown activation type.

Referring to the standard, we can state that the Negative Response Code "Requires TLS" should be set to "0x07" :

After reception of a routing activation request message with a routing activation type, which requires the
secure TLS connection to the DoIP entity then each DoIP entity supporting the secure TCP communication
shall send the routing activation response message with the response code set to 0x07.

This patch applies the correct correction to the "DeniedRequiresTLS" value.

Sincerely,

Clément Ramirez

@jacobschaer
Copy link
Owner

Can you also add the correct 0x6 and update the comment to say "table 49" instead of 48? I'm not sure where the mistake came in. The AutoSAR spec seems to have only referenced a few of them so I imagine copy/paste error from one of the other sources.

6 should be DeniedUnsupportedActivationType
https://github.com/wireshark/wireshark/blob/e9c737abbe5b3cdb0245333750a05df3cad26975/epan/dissectors/packet-doip.c#L244

The value corresponding to a Negative Response "Requires TLS" after sending a Routing Activation Request is invalid.

Currently this value is set to "0x06", but according to the ISO-13400 standard, the "0x06" value corresponds to an unknown activation type.

Referring to the standard, we can state that the Negative Response Code "Requires TLS" should be set to "0x07" :

> After reception of a routing activation request message with a routing activation type, which requires the
> secure TLS connection to the DoIP entity then each DoIP entity supporting the secure TCP communication
> shall send the routing activation response message with the response code set to 0x07.

This patch applies the correct correction to the "DeniedRequiresTLS" value.
@clementramirez
Copy link
Contributor Author

Thanks for your fast reply,

The DeniedUnsupportedActivationType has been added to the ResponseCode Class and the comment for the table number is now set to 49.

@jacobschaer jacobschaer merged commit bd46290 into jacobschaer:main Sep 12, 2024
17 checks passed
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