From owner-freebsd-net@FreeBSD.ORG  Wed Nov  7 12:32:27 2007
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
Delivered-To: net@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 89BE916A420
	for <net@FreeBSD.org>; Wed,  7 Nov 2007 12:32:27 +0000 (UTC)
	(envelope-from rdivacky@vlk.vlakno.cz)
Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247])
	by mx1.freebsd.org (Postfix) with ESMTP id 4043B13C481
	for <net@FreeBSD.org>; Wed,  7 Nov 2007 12:32:26 +0000 (UTC)
	(envelope-from rdivacky@vlk.vlakno.cz)
Received: from localhost (localhost [127.0.0.1])
	by vlakno.cz (Postfix) with ESMTP id F368D669C48;
	Wed,  7 Nov 2007 13:32:06 +0100 (CET)
X-Virus-Scanned: amavisd-new at vlakno.cz
Received: from vlakno.cz ([127.0.0.1])
	by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id DOXolsKIkLLg; Wed,  7 Nov 2007 13:32:05 +0100 (CET)
Received: from vlk.vlakno.cz (localhost [127.0.0.1])
	by vlakno.cz (Postfix) with ESMTP id 6580B669C32;
	Wed,  7 Nov 2007 13:32:05 +0100 (CET)
Received: (from rdivacky@localhost)
	by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id lA7CW5k4030863;
	Wed, 7 Nov 2007 13:32:05 +0100 (CET) (envelope-from rdivacky)
Date: Wed, 7 Nov 2007 13:32:05 +0100
From: Roman Divacky <rdivacky@FreeBSD.org>
To: Rui Paulo <rpaulo@FreeBSD.org>
Message-ID: <20071107123204.GA30802@freebsd.org>
References: <20071105153459.GA52205@freebsd.org>
	<0AB7127C-ED54-474A-897E-0DB8EF94F42D@FreeBSD.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <0AB7127C-ED54-474A-897E-0DB8EF94F42D@FreeBSD.org>
User-Agent: Mutt/1.4.2.3i
Cc: net@FreeBSD.org
Subject: Re: [PATCH]: implementation of SIOCGIFINDEX in linuxulator
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Nov 2007 12:32:27 -0000

On Wed, Nov 07, 2007 at 11:30:34AM +0000, Rui Paulo wrote:
> 
> On 5 Nov 2007, at 15:34, Roman Divacky wrote:
> 
> >hi
> >
> >I implemented SIOCGIFINDEX in linuxulator and I would like you
> >to review the patch.. the implementation is trivial, just mapping
> >it to the native fbsd call.
> >
> >the patch can be found here: 
> >http://www.vlakno.cz/~rdivacky/linux_socket.patch
> >
> >I have a report that it helps some java program. please review it so
> >it can be commited
> 
> 
> Perhaps I'm missing something, but what should happen with  
> LINUX_SIOCGIFCOUNT ?

it should just return 0. its not implemented in linux and just returns 0
there too.. the tester reports that it works in this implementation 
so I guess it's just ok.

roman