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

refactor: replace non-standard icmphdr with icmp #263

Merged
merged 3 commits into from
Sep 7, 2022

Conversation

aloisklink
Copy link
Contributor

The struct icmphdr in #include <netinit/ip_icmp.h> is non-standard, and contains different properties on FreeBSD.

Because it's only a pointer (there's no memory allocation), we might as well use the standard struct icmp, which is a both Linux and FreeBSD compatible superset of struct icmphdr.

The `struct icmphdr` in `#include <netinit/ip_icmp.h>` is non-standard,
and contains different properties on FreeBSD.

Because it's only a pointer (there's no memory allocation), we might
as well use the standard `struct icmp`, which is a both Linux and FreeBSD
compatible superset of `struct icmphdr`.
@aloisklink aloisklink added the bug Something isn't working label Sep 6, 2022
@codecov
Copy link

codecov bot commented Sep 6, 2022

Codecov Report

Merging #263 (c12070c) into main (7d4dd2e) will not change coverage.
The diff coverage is 0.00%.

❗ Current head c12070c differs from pull request most recent head a6d7d38. Consider uploading reports for the commit a6d7d38 to get more accurate results

@@           Coverage Diff           @@
##             main     #263   +/-   ##
=======================================
  Coverage   48.51%   48.51%           
=======================================
  Files         113      113           
  Lines       17887    17887           
=======================================
  Hits         8678     8678           
  Misses       9209     9209           
Impacted Files Coverage Δ
...ure/middlewares/header_middleware/packet_decoder.c 0.00% <0.00%> (ø)
tests/radius/radius_client.c 32.39% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@aloisklink aloisklink merged commit 3687108 into main Sep 7, 2022
@aloisklink aloisklink deleted the refactor/use-standard-icmp-not-icmphdr branch September 7, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants