From owner-freebsd-bugs Sat Mar 4 4:50: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 09BE237B796 for ; Sat, 4 Mar 2000 04:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA30646; Sat, 4 Mar 2000 04:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 063D737B704 for ; Sat, 4 Mar 2000 04:49:00 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA30568; Sat, 4 Mar 2000 04:48:59 -0800 (PST) (envelope-from nobody@FreeBSD.org) Message-Id: <200003041248.EAA30568@freefall.freebsd.org> Date: Sat, 4 Mar 2000 04:48:59 -0800 (PST) From: satherrl@dssrg.curtin.edu.au To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/17178: -d option of lpd didnt work Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17178 >Category: misc >Synopsis: -d option of lpd didnt work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 4 04:50:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Richard >Release: 3.4-STABLE >Organization: Curtin Uni >Environment: FreeBSD oldbob.curtin.edu.au 3.4-STABLE FreeBSD 3.4-STABLE #0: Sat Feb 26 20:01:28 WST 2000 root@oldbob.curtin.edu.au:/usr/src/sys/compile/DOUBLE i386 >Description: lpd -d -l produces an error setsockopt (SO_DEBUG): Invalid Argument and aborts the lpd >How-To-Repeat: type lpd -d -l >Fix: < int f, funix, finet, options, fromlen, i, errs; --- > int f, funix, finet, options, fromlen, i, errs, mflag; 283,284c283,285 < if (options & SO_DEBUG) < if (setsockopt(finet, SOL_SOCKET, SO_DEBUG, 0, 0) < 0) { --- > if (options & SO_DEBUG) { > mflag=1; > if (setsockopt(finet, SOL_SOCKET, SO_DEBUG, &mflag, sizeof(mflag)) < 0) { 287a289 > } use the right args to setsockopt, use 'option TCPDEBUG' in the kernel, use trpt -a (seems to work for me :-) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message