You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Alan M. Carroll (JIRA)" <ji...@apache.org> on 2012/07/25 02:57:35 UTC

[jira] [Comment Edited] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421127#comment-13421127 ] 

Alan M. Carroll edited comment on TS-1378 at 7/25/12 12:56 AM:
---------------------------------------------------------------

Can you compile this, run it, and let me know the output?

{code:title=getaddrinfo.c}
# include <memory.h>
# include <sys/types.h>
# include <sys/socket.h>
# include <netdb.h>
# include <stdio.h>

int main() {
  char const* v6 = "::1";
  struct addrinfo ai_hints;
  struct addrinfo* ai_result;
  struct addrinfo* spot;
  int zret;
  memset(&ai_hints, 0, sizeof(ai_hints));
  ai_hints.ai_family = AF_UNSPEC;
  ai_hints.ai_flags = AI_ADDRCONFIG;
  zret = getaddrinfo(v6, 0, &ai_hints, &ai_result);
  printf("zret=%d\n", zret);
  if (0 == zret) {
    for (spot = ai_result ; spot ; spot = spot->ai_next ) {
      struct sockaddr const* ip = spot->ai_addr;
      if (ip->sa_family == AF_INET6) {
	printf("IPv6 valid\n");
	break;
      }
    }
  }
  return 0;
}
{code}
                
      was (Author: amc):
    Can you compile this, run it, and let me know the output?

{code:title=getaddrinfo.c}
# include <memory.h>
# include <sys/types.h>
# include <sys/socket.h>
# include <netdb.h>
# include <stdio.h>

int main() {
  char const* v6 = "::1";
  struct addrinfo ai_hints;
  struct addrinfo* ai_result;
  struct addrinfo* spot;
  int zret;
  memset(&ai_hints, 0, sizeof(ai_hints));
  ai_hints.ai_family = AF_UNSPEC;
  ai_hints.ai_flags = AI_ADDRCONFIG;
  zret = getaddrinfo(v6, 0, &ai_hints, &ai_result);
  printf("zret=%d\n", zret);
  for (spot = ai_result ; spot ; spot = spot->ai_next ) {
    struct sockaddr const* ip = spot->ai_addr;
    if (ip->sa_family == AF_INET6) {
      printf("IPv6 valid\n");
      break;
    }
  }
  return 0;
}
{code}
                  
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira