From owner-freebsd-net@FreeBSD.ORG Fri Aug 14 06:05:16 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24A32106568C for ; Fri, 14 Aug 2009 06:05:16 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward1.yandex.ru (forward1.yandex.ru [77.88.46.6]) by mx1.freebsd.org (Postfix) with ESMTP id D015A8FC6B for ; Fri, 14 Aug 2009 06:05:15 +0000 (UTC) Received: from smtp4.yandex.ru (smtp4.yandex.ru [77.88.46.104]) by forward1.yandex.ru (Yandex) with ESMTP id 5244914682E1; Fri, 14 Aug 2009 10:05:14 +0400 (MSD) Received: from [127.0.0.1] (ns.kirov.so-cdu.ru [77.72.136.145]) by smtp4.yandex.ru (Yandex) with ESMTPSA id E155AD3007A; Fri, 14 Aug 2009 10:05:13 +0400 (MSD) Message-ID: <4A84FE96.1070506@yandex.ru> Date: Fri, 14 Aug 2009 10:05:10 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: d@delphij.net References: <4A83EEA8.5080202@delphij.net> <4A840DA1.600@yandex.ru> <4A844FF2.9000307@elischer.org> <20090813182918.S93661@maildrop.int.zabbadoz.net> <4A846AD3.3080301@delphij.net> In-Reply-To: <4A846AD3.3080301@delphij.net> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Yandex-TimeMark: 1250229914 X-Yandex-Spam: 1 X-Yandex-Front: smtp4.yandex.ru Cc: "Bjoern A. Zeeb" , Julian Elischer , freebsd-net@freebsd.org Subject: Re: RFC: interface description X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2009 06:05:16 -0000 Xin LI wrote: > The only question I have would be, that is it possible to uniquely > identify a NIC without assistance from kernel? For instance, one can > change an interface from being called "em0" to "eth0" and from "bge0" to > "em0". It's easy to track this information through ifconfig(8) with a > callback, clean up the file upon restart, but we can not prevent other > programs from calling IOCSIFNAME on the interface. Any idea for this? What about using interface index as a key(see if_nameindex(3))? -- WBR, Andrey V. Elsukov