Date: Tue, 3 Apr 2001 00:10:36 +0200 From: Andreas Klemm <andreas@freebsd.org> To: freebsd-stable@freebsd.org Subject: problems with remote printing from Win2000 to FreeBSD 4.3RC via lpd Message-ID: <20010403001036.A5501@titan.klemm.gtn.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi !
smb remote printing wasn't possible (worked before), so I tried to print
via lpd to my Unix (print) server.
FreeBSD titan.klemm.gtn.com 4.3-RC FreeBSD 4.3-RC #0: Sat Mar 31 22:48:33 CEST 2001 root@titan.klemm.gtn.com:/usr/src/sys/compile/TITAN i386
Remote printing didn't work. Ethereal (sniffer) showed an error message,
"Malformed from address".
/etc/hosts.lpd contains:
aklemm.klemm.gtn.com
aklemm
I found in lpd.c:
/*
* Check to see if the from host has access to the line printer.
*/
static void
chkhost(f)
struct sockaddr *f;
{
struct addrinfo hints, *res, *r;
register FILE *hostf;
int first = 1;
int good = 0;
char host[NI_MAXHOST], ip[NI_MAXHOST];
char serv[NI_MAXSERV];
int error, addrlen;
caddr_t addr;
error = getnameinfo(f, f->sa_len, NULL, 0, serv, sizeof(serv),
NI_NUMERICSERV);
if (error || atoi(serv) >= IPPORT_RESERVED)
fatal(0, "Malformed from address");
/* Need real hostname for temporary filenames */
error = getnameinfo(f, f->sa_len, host, sizeof(host), NULL, 0,
NI_NAMEREQD);
What do you think why remote printing doesn't work ?
Any experience ? I have to go to bed now, wanted to print one
set of folies for a meeting tomorrow ;-) Well this is delayed now ;-)
Andreas ///
--
Andreas Klemm - Powered by FreeBSD 4.2 SMP
Need a magic printfilter today ? -> http://www.apsfilter.org/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: Weitere Infos: siehe http://www.gnupg.org
iD8DBQE6yPjcd3o+lGxvbLoRAsHQAJ4+8qCzTIpXm9hhctUDR9eN0iUTjgCgmwJG
YskdThCcoI9FxHKSJ9JGjbg=
=Oq/p
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010403001036.A5501>
