Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2004 01:35:19 +0300
From:      Gleb Smirnoff <glebius@cell.sick.ru>
To:        Ruslan Ermilov <ru@FreeBSD.org>, julian@FreeBSD.org, archie@FreeBSD.org, freebsd-net@FreeBSD.org
Subject:   Re: kern/63864: [patch] new control message for ng_iface(4) - getifindex
Message-ID:  <20040309223519.GA75896@cell.sick.ru>
In-Reply-To: <20040308102033.GA66247@cell.sick.ru>
References:  <200403072302.i27N2StR008804@freefall.freebsd.org> <20040308102033.GA66247@cell.sick.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 08, 2004 at 01:20:33PM +0300, Gleb Smirnoff wrote:
T>   Imagine the following: you have node, which is connected to some generic
T> interface (it doesn't know which node type exactly). This node wants to
T> determine interface index of attached interfac. It would send 3 "getifindex" messages with 3
T> different cookies. Two of messages will always fail, and one return. This is not nice.
T> 
T> What I suggest: create a new semi-generic cookie NGM_GENERICIFACE_COOKIE, which will be
T> supported by all interface nodes. Put NGM_GENERICIFACE_GETIFINDEX message under
T> NGM_GENERICIFACE_COOKIE case brackets. If you like this idea, please reply me. And I'll send
T> patches.

I've forgot to mention, that NGM_XXX_GET_IFNAME messages can be treated the same way.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE



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