From nobody@FreeBSD.org  Sat Mar  4 04:49:00 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 063D737B704
	for <freebsd-gnats-submit@FreeBSD.org>; 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
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: -d option of lpd didnt work
X-Send-Pr-Version: www-1.0

>Number:         17178
>Category:       misc
>Synopsis:       [MFC] -d option of lpd didnt work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gad@FreeBSD.org
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar  4 04:50:01 PST 2000
>Closed-Date:    Wed Dec 27 09:20:39 PST 2000
>Last-Modified:  Wed Dec 27 09:21:25 PST 2000
>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:
State-Changed-From-To: open->suspended 
State-Changed-By: gad 
State-Changed-When: Tue Nov 14 22:01:18 PST 2000 
State-Changed-Why:  
The suggested patch has been applied to lpd in freebsd-current (with a few 
minor changes).  Change is awaiting MFC. 


Responsible-Changed-From-To: freebsd-bugs->gad@FreeBSD.org 
Responsible-Changed-By: gad 
Responsible-Changed-When: Tue Nov 14 22:01:18 PST 2000 
Responsible-Changed-Why:  
I'm cleaning out all the PR's related to lpr, lpd & friends. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17178 
State-Changed-From-To: suspended->closed 
State-Changed-By: gad 
State-Changed-When: Wed Dec 27 09:20:39 PST 2000 
State-Changed-Why:  
Fix has been applied on both -current (5.x) and -stable (post 4.2) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17178 
>Unformatted:
