From owner-freebsd-stable Mon Apr 2 15:20:29 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id C23B637B71D for ; Mon, 2 Apr 2001 15:20:24 -0700 (PDT) (envelope-from andreas@klemm.gtn.com) Received: (from uucp@localhost) by mail.du.gtn.com (8.11.0.Beta3/8.11.0.Beta3) id f32MKMk25639 for freebsd-stable@freebsd.org; Tue, 3 Apr 2001 00:20:22 +0200 (MET DST) >Received: (from andreas@localhost) by klemm.gtn.com (8.11.3/8.11.2) id f32MAaH05928 for freebsd-stable@freebsd.org; Tue, 3 Apr 2001 00:10:36 +0200 (CEST) (envelope-from andreas) Date: Tue, 3 Apr 2001 00:10:36 +0200 From: Andreas Klemm 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> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.3-RC SMP X-Disclaimer: A free society is one where it is safe to be unpopular Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --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