From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 25 11:48:06 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9951516A4AB for ; Mon, 25 Sep 2006 11:48:06 +0000 (UTC) (envelope-from borjamar@sarenet.es) Received: from smtp2.sarenet.es (smtp2.sarenet.es [194.30.0.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F41643DF6 for ; Mon, 25 Sep 2006 11:46:42 +0000 (GMT) (envelope-from borjamar@sarenet.es) Received: from [127.0.0.1] (matahari.sarenet.es [192.148.167.18]) by smtp2.sarenet.es (Postfix) with ESMTP id 12F3916113 for ; Mon, 25 Sep 2006 13:46:37 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <7591D6A9-27EE-4ADE-AF09-84F8636ADD98@sarenet.es> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: hackers@freebsd.org From: Borja Marcos Date: Mon, 25 Sep 2006 13:46:42 +0200 X-Mailer: Apple Mail (2.752.2) Cc: Subject: network stack problem in sparc64? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 11:48:06 -0000 Hello, I saw this some time ago but always forgot to report it. I'm running a pair of machines with FreeBSD/sparc64 (various versions, one of them is running -STABLE now), and I've seen a problem with the network stack. Looking at buffer and window sizes, earendil# sysctl net.inet.tcp|fgrep space net.inet.tcp.sendspace: 0 net.inet.tcp.recvspace: 0 earendil# sysctl net.inet.udp net.inet.udp.checksum: 1 net.inet.udp.maxdgram: 0 net.inet.udp.recvspace: 0 When I try to modify them, it doesn't work at all. For example, trying to run nfcapd/nfsen in a sparc64 box, I get an error for a setsockopt() call earendil# /usr/local/etc/rc.d/nfsen start Starting nfsenStarting nfcpad: upstream1setsockopt(SO_RCVBUF,200000): Invalid argument Terminated due to errors. nfcapd exec error: exit: 255, signal: 0, coredump: 0 For x86 machines the values are correctly reported and they work as expected. I have been poking Google for this but I haven't seen any mention of this. Best regards, Borja. P.S: The example machine is running earendil# uname -a FreeBSD earendil.arnor.es 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Fri Sep 22 12:04:44 CEST 2006 root@earendil.arnor.es:/usr/obj/usr/ src/sys/EARENDIL sparc64