[sane-devel] problems with saned/sane-net

Michael Hanselmann michael.w.b at bluewin.ch
Sat Mar 16 11:34:07 GMT 2002


Hello

I've a big problem with saned. I want to scan over the network, so i've 
configured all. Now if I connect to the "scanserver" with
  # scanimage -d net:192.168.1.10:scanner
then the saned, started with
  # saned -d128
will return the following:

[saned] main: starting debug mode (level 128)
[saned] main: trying to get port for service `sane' (getservbyname)
[saned] main: port is 6566
[saned] main: socket ()
[saned] main: setsockopt ()
[saned] main: bind ()
[saned] main: listen ()
[saned] main: waiting for control connection
[saned] check_host: access by remote host: 192.168.1.1
[saned] check_host: remote host is not IN_LOOPBACK
[saned] check_host: remote hostname (from DNS): new.fli4l
[saned] check_host: remote host address (from DNS): 192.168.1.1
[saned] check_host: local hostname: fli4l_test
[saned] check_host: gethostbyname failed: Unknown error
[saned] init: access by saned-user at new.fli4l rejected
[saned] quit: exiting

My host (192.168.1.1, hostname is "new") is in /etc/sane.d/saned.conf, 
i've also tested with a plus (+), but it wouldn't run
my local domain is fli4l and the nameserver is 192.168.1.5, both hosts 
(scanserver and my client [new] is in the dns-server, they can be 
resolved without problems)

I think, the problem is in the sourcecode at the following check:
...
   he = gethostbyname (hostname);
   if (!he)
     {
       DBG (DBG_ERR, "check_host: gethostbyname failed: %s\n",
            strerror (errno));
       return SANE_STATUS_INVAL;
     }
...

can anyone help me? are there any problems with libc5?

-- 
Gruss Michael

+----------------------------------+
|  registered fli4l-user 00000212  |
+----------------------------------+
|    There's no Linux 95 or 98     |
|    because Linux is forever!!    |
+----------------------------------+





More information about the sane-devel mailing list