Skip to content

plugins types BUGFIX print same IPv6 format as stored#2509

Open
jeremie6wind wants to merge 1 commit intoCESNET:develfrom
jeremie6wind:devel
Open

plugins types BUGFIX print same IPv6 format as stored#2509
jeremie6wind wants to merge 1 commit intoCESNET:develfrom
jeremie6wind:devel

Conversation

@jeremie6wind
Copy link
Copy Markdown
Contributor

Hi,

The stored IPv6 address is sometimes not the same as the printed one.
For instance, if a compressed IPv6 address ::2222:1111 is stored, then a dual stack IPv6 address ::34.34.17.17 will be printed. This is due to the inet_ntop function implementation.
The aim of this patch is to store the IPv6 format and print the same format.
Store the IPv6 format with the value.
Introduce ipv6address_ip2str that converts back the IPv4 part if necessary.

Thank you
Best regards
Jeremie

The stored IPv6 address is sometimes not the same as the printed one.
For instance, if a compressed IPv6 address ::2222:1111 is stored, then
a dual stack IPv6 address ::34.34.17.17 will be printed.
This is due to the inet_ntop function implementation.
The aim of this patch is to store the IPv6 format and print the same
format.
Store the IPv6 format with the value.
Introduce ipv6address_ip2str that converts back the IPv4 part if
necessary.

Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
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.

1 participant