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

IPv6 support #21

Open
GoogleCodeExporter opened this issue May 15, 2015 · 1 comment
Open

IPv6 support #21

GoogleCodeExporter opened this issue May 15, 2015 · 1 comment
Labels

Comments

@GoogleCodeExporter
Copy link

What new or enhanced feature are you proposing?

IPv6 support.

What goal would this enhancement help you achieve?

This would allow an IPv6 address for the credential origin to be stored in the metadata when the credential is encoded, and queried when the credential is decoded.

Please provide any additional information below.

Request from Tomas Kouba on 2013-02-06:
https://groups.google.com/forum/?fromgroups=#!topic/munge-users/dzqNuKT9uww

Original issue reported on code.google.com by chris.m.dunlap on 11 Feb 2013 at 9:23

@dun dun added this to the 0.6 milestone Jun 4, 2015
@dun dun added feature and removed auto-migrated labels Jun 5, 2015
@dun
Copy link
Owner

dun commented Jul 2, 2019

The v3 credential format has an origin address of variable length, so it already allows for IPv6 addresses.

Additional work includes:

  • Replace struct in_addr addr in struct m_msg ["libcommon/m_msg.h"].
  • Replace struct in_addr addr in struct munge_ctx ["libmunge/ctx.h"].
  • Replace struct in_addr addr in struct conf ["munged/conf.h"].
  • Rename struct conf addr to origin_addr ["munged/conf.h"] for consistency.
  • Replace gethostbyname() with getaddrinfo().
  • Specify hints.ai_family = AF_UNSPEC in getaddrinfo().
  • Update write_origin_addr() ["munged/conf.c"].
  • Check AF_INET6 family in getifaddrs() result ["munged/net.c"].
  • Replace gethostbyaddr() with getnameinfo().
  • Remove "libmissing/inet_ntop.c" since it only supports IPv4.
  • Add context option MUNGE_OPT_ADDR to return a struct sockaddr.
  • Add context option MUNGE_OPT_ADDR6 to return a struct in6_addr?
  • Deprecate context option MUNGE_OPT_ADDR4?
  • Pack null addr into 1 byte of credential metadata.
  • Test munge_ctx_get (ctx, MUNGE_OPT_ADDR, ...) with null addr.
  • Test munge_ctx_get (ctx, MUNGE_OPT_ADDR, ...) with IPv6 addr.
  • Update display_encode_host() ["munge/unmunge.c"].
  • Support IPv6 addresses in munged --origin.
  • Support IPv6 addresses with MUNGE_OPT_ADDR_RESTRICTION.
  • Update libmunge libtool -version-info due to added context option(s).
  • Update sharness tests for munged --origin.
  • Update sharness tests for unmunge ENCODE_HOST.
  • Update sharness tests for unmunge ADDR_RESTRICTION.

@dun dun modified the milestones: 0.6, 0.5.15 Nov 3, 2020
@dun dun removed this from the 0.5.15 milestone Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants