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 warning #490

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix warning #490

wants to merge 2 commits into from

Conversation

flu0r1ne
Copy link
Contributor

@flu0r1ne flu0r1ne commented Oct 4, 2023

This fixes an "unused variable" warning printed during compilation on 13.2.1.

Tested on Linux and FreeBSD wtih:

make clean
make
MTR_PACKET="./mtr-packet" sudo -E ./mtr -t --udp 2606:4700:4700::1111

Commit d6171b8 switched from using
the kernel's `IPV6_CHECKSUM` to calculate the checksum to a manual
checksum calculation. Although, it did not remove the reference to
the socket leading to an unused variable warning.
`udp4_checksum` is also used to checksum udp over ipv6.
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.

None yet

1 participant