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: Utilize hoplimit for multicast #392

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

jkralik
Copy link
Member

@jkralik jkralik commented Oct 10, 2023

If the hoplimit is set, it will be used. If not set, the default values defined in the OCF Core Specification section 12.2.9 will be used.

Default values:

  • For "224.0.1.187:5683", the hoplimit is set to 1.
  • For "[ff02::158]:5683", the hoplimit is set to 1.
  • For "[ff03::158]:5683", the hoplimit is set to 255.
  • For "[ff05::158]:5683", the hoplimit is set to 255.

@jkralik jkralik requested a review from Danielius1922 October 10, 2023 07:44
@jkralik jkralik force-pushed the jkralik/fix/mcast-hop-limit branch from 7224ca0 to 6d4d0c2 Compare October 10, 2023 07:45
@codecov-commenter
Copy link

Codecov Report

Merging #392 (6d4d0c2) into main (2f1f7eb) will increase coverage by 0.02%.
The diff coverage is 84.21%.

@@            Coverage Diff             @@
##             main     #392      +/-   ##
==========================================
+ Coverage   65.37%   65.40%   +0.02%     
==========================================
  Files          79       79              
  Lines        5482     5498      +16     
==========================================
+ Hits         3584     3596      +12     
- Misses       1473     1475       +2     
- Partials      425      427       +2     
Files Coverage Δ
client/core/client.go 86.51% <100.00%> (ø)
client/core/discover.go 74.78% <83.33%> (+1.04%) ⬆️

... and 1 file with indirect coverage changes

If the hoplimit is set, it will be used. If not set, the default
values defined in the [OCF Core Specification](https://openconnectivity.org/specs/OCF_Core_Specification.pdf)
section 12.2.9 will be used.

Default values:
- For "224.0.1.187:5683", the hoplimit is set to 1.
- For "[ff02::158]:5683", the hoplimit is set to 1.
- For "[ff03::158]:5683", the hoplimit is set to 255.
- For "[ff05::158]:5683", the hoplimit is set to 255.
@jkralik jkralik force-pushed the jkralik/fix/mcast-hop-limit branch from 6d4d0c2 to d90a598 Compare October 10, 2023 07:58
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

93.8% 93.8% Coverage
0.0% 0.0% Duplication

@Danielius1922
Copy link
Member

@jkralik Review the Security Hotspots reported by SC, I think we can mark them as safe.

@jkralik jkralik merged commit f58dd27 into main Oct 10, 2023
@jkralik jkralik deleted the jkralik/fix/mcast-hop-limit branch October 10, 2023 08:10
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