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
--OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 C= EST 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 =3D 1; int good =3D 0; char host[NI_MAXHOST], ip[NI_MAXHOST]; char serv[NI_MAXSERV]; int error, addrlen; caddr_t addr; =20 error =3D getnameinfo(f, f->sa_len, NULL, 0, serv, sizeof(serv), NI_NUMERICSERV); if (error || atoi(serv) >=3D IPPORT_RESERVED) fatal(0, "Malformed from address"); =20 /* Need real hostname for temporary filenames */ error =3D 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 /// --=20 Andreas Klemm - Powered by FreeBSD 4.2 SMP Need a magic printfilter today ? -> http://www.apsfilter.org/ --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----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----- --OXfL5xGRrasGEqWY-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010403001036.A5501>