Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2000 04:48:59 -0800 (PST)
From:      satherrl@dssrg.curtin.edu.au
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/17178: -d option of lpd didnt work
Message-ID:  <200003041248.EAA30568@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003041248.EAA30568>