NetBSD Problem Report #37843

From yamt@mwd.biglobe.ne.jp  Tue Jan 22 11:15:18 2008
Return-Path: <yamt@mwd.biglobe.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 4DBF963BAF4
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 22 Jan 2008 11:15:18 +0000 (UTC)
Message-Id: <20080122111515.E12E211703@yamt.dyndns.org>
Date: Tue, 22 Jan 2008 20:15:15 +0900 (JST)
From: yamt@mwd.biglobe.ne.jp
Reply-To: yamt@mwd.biglobe.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: nttcp doesn't work
X-Send-Pr-Version: 3.95

>Number:         37843
>Category:       kern
>Synopsis:       nttcp doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 22 11:20:00 +0000 2008
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 4.99.49
>Organization:

>Environment:
>Description:
	pkgsrc/benchmarks/nttcp doesn't work.

	nttcp try to do setsockopt SO_LINGER with:

struct linger Ling = {
	1,              /* option on */
	1000000         /* linger time, for our control connection */
};

	after uipc_socket.c rev.1.131, we rejects values larger
	than USHRT_MAX.
----------------------------
revision 1.131
date: 2006/12/08 00:23:08;  author: christos;  state: Exp;  lines: +6 -5
- make so_linger unsigned short to double the range
- return 1 or 0 for the flag being set instead of the flag value
- check for range properly
----------------------------

	another report of the failure:
	http://mail-index.netbsd.org/netbsd-help/2007/03/09/0002.html

	(note that nttcp's error handling is somehow broken and
	can corrupt errno before reporting it.)
>How-To-Repeat:
	run nttcp.
>Fix:
	while nttcp is broken and should be fixed, i guess it could be better
	for us to truncate this big value silently, given that it's likely
	intended to be "forever".

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.