[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linux + IPv6 + KDC ?




kdc --addresses=kerberos.ipv6.nxs.se
kdc --addresses=3ffe:240:0:face:220:afff:fe5a:a9b2

...both give the same results (with the patch):

tcp        0      0 3ffe:240:0:face:220:750 :::*	LISTEN
tcp        0      0 3ffe:240:0:face:220::88 :::*	LISTEN
udp        0      0 4002:fe3f:cefa:0:ff:750 :::*
udp        0      0 4002:fe3f:cefa:0:ffa:88 :::*

On 16 Feb 2000, Assar Westerlund wrote:

> Tomas Lund <tlund@nxs.se> writes:
> > ...some kind of byteorder problem somewhere?
> 
> Try the following patch.
> 
> /assar
> 
> Index: addr_families.c
> ===================================================================
> RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/heimdal/lib/krb5/addr_families.c,v
> retrieving revision 1.22
> diff -u -w -u -w -r1.22 addr_families.c
> --- addr_families.c	1999/12/04 17:53:33	1.22
> +++ addr_families.c	2000/02/16 02:05:34
> @@ -532,12 +532,7 @@
>      ALLOC_SEQ(addresses, n);
>  
>      for (a = ai, i = 0; a != NULL; a = a->ai_next, ++i) {
> -	struct addr_operations *aop = find_af (ai->ai_family);
> -
> -	addresses->val[i].addr_type = aop->atype;
> -	krb5_data_copy (&addresses->val[i].address,
> -			ai->ai_addr,
> -			ai->ai_addrlen);
> +	krb5_sockaddr2address (ai->ai_addr, &addresses->val[i]);
>      }
>      freeaddrinfo (ai);
>      return 0;