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

sys/net/network_layer/ipv4/addr: add ipv4_addr_print function #18694

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

HendrikVE
Copy link
Contributor

Contribution description

Adds the function ipv4_addr_print, similar to the already existing to ipv6_addr_print.

Issues/PRs references

Dependency for and split out from #16853

@github-actions github-actions bot added Area: network Area: Networking Area: sys Area: System labels Oct 5, 2022
@HendrikVE HendrikVE added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed Area: network Area: Networking Area: sys Area: System labels Oct 5, 2022
@aabadie aabadie added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Oct 5, 2022
@riot-ci
Copy link

riot-ci commented Oct 5, 2022

Murdock results

✔️ PASSED

6c98a5b sys/net/network_layer/ipv4/addr: add ipv4_addr_print function

Success Failures Total Runtime
1979 0 1979 06m:49s

Artifacts

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

@github-actions github-actions bot added Area: network Area: Networking Area: sys Area: System labels Oct 5, 2022
@aabadie aabadie added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Oct 5, 2022
{
assert(addr);
char addr_str[IPV4_ADDR_MAX_STR_LEN];
ipv4_addr_to_str(addr_str, addr, sizeof(addr_str));
Copy link
Member

Choose a reason for hiding this comment

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

Where is this function implemented? Wouldn't it make sense to add ipv4_addr_print() there as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ipv4_addr_to_str can be found in net/ipv4/addr.h like ipv6_addr_to_str can be found in net/ipv6/addr.h. I'm just placing the IPv4 variants relative to their respective IPv6 counterparts ;)

Copy link
Member

Choose a reason for hiding this comment

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

In net/ipv6/addr.h there is just the definition of ipv4_addr_to_str(), but I now saw, that they are in their own compile unit ipv6_addr_to_str.c. So nvm.

@maribu maribu enabled auto-merge October 6, 2022 07:06
@maribu maribu merged commit eaa2523 into RIOT-OS:master Oct 6, 2022
@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants