Lots ? cant gethostbyaddr errors from nnrpd

Vallo Kallaste vallo at matti.ee
Wed Aug 23 07:49:51 UTC 2000


On Wed, Aug 23, 2000 at 03:56:31PM +0900, Katsuhiro Kondou <kondou at nec.co.jp> wrote:

> Hm, it seems that Address2Name() fails.  Can you examine
> how it's going by attached?
> -- 
> Katsuhiro Kondou
> 
> --- nnrpd/nnrpd.c.orig	Sat Aug 19 00:20:57 2000
> +++ nnrpd/nnrpd.c	Wed Aug 23 15:53:08 2000
> @@ -388,13 +388,17 @@
>  	if (memcmp((POINTER)&ap->s_addr, (POINTER)*pp,
>  		(SIZE_T)hp->h_length) == 0)
>  	    break;
> +	else
> +	    syslog(L_NOTICE, "Address2Name %x %x", (int)ap->s_addr, *(int *)*pp);
>      if (*pp == NULL)
>  	return FALSE;
>  #else
>      /* We have one address. */
>      if (memcmp((POINTER)&ap->s_addr, (POINTER)hp->h_addr,
> -	    (SIZE_T)hp->h_length) != 0)
> +	    (SIZE_T)hp->h_length) != 0) {
> +	syslog(L_NOTICE, "Address2Name %x %x", (int)ap->s_addr, *(int *)hp->h_addr);
>  	return FALSE;
> +    }
>  #endif
>  
>      /* Only needed for misconfigured YP/NIS systems. */

Remains, but with an additional message:

nnrpd[65861]: SERVER perl filtering enabled
nnrpd[65861]: Address2Name 14727ec2 100007f
nnrpd[65861]: ? cant gethostbyaddr myhakas.matti.ee Undefined error: 0 -- using IP address for access
nnrpd[65861]: myhakas.matti.ee connect

Now I'm running 2.3.0 release with your patch. FreeBSD 3.5-STABLE.
-- 

Vallo Kallaste
vallo at matti.ee



More information about the inn-workers mailing list