From owner-freebsd-questions@FreeBSD.ORG Sun Jul 20 15:34:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19C471065679 for ; Sun, 20 Jul 2008 15:34:20 +0000 (UTC) (envelope-from rehsack@web.de) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.freebsd.org (Postfix) with ESMTP id A52458FC0A for ; Sun, 20 Jul 2008 15:34:19 +0000 (UTC) (envelope-from rehsack@web.de) Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id D55F2E47FB81 for ; Sun, 20 Jul 2008 17:06:55 +0200 (CEST) Received: from [87.149.231.190] (helo=waldorf.muppets.liwing.de) by smtp08.web.de with esmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1KKaUx-0000E3-00 for freebsd-questions@freebsd.org; Sun, 20 Jul 2008 17:06:55 +0200 Message-ID: <48835479.9070607@web.de> Date: Sun, 20 Jul 2008 15:06:33 +0000 From: Jens Rehsack User-Agent: Thunderbird 2.0.0.14 (X11/20080703) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: rehsack@web.de X-Sender: rehsack@web.de X-Provags-ID: V01U2FsdGVkX1/5HHae5DlbVp1rb7k61I1AU32k/mOs7nnGy7yZ /EeGXZ8dfh9OHyDQt6nf79rhXMxrNm5v9D5ePu6DcxWfTydOn3 x+U8MaIuI= Subject: lo0 not in ioctl( SIOCGIFCONF ) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 15:34:20 -0000 Hi, I was searching why ports/net/p5-Net-Interface was not working as expected and found some reasons. Most of them I can answer by implementing some test code as attached, but now I'm wondering why em0 is shown twice and lo0 is not included. The same situation on another machine .. --- BEGIN ifconfig -a (waldorf) em0: flags=8843 metric 0 mtu 1500 options=19b ether 00:15:17:10:84:6c inet 10.62.10.3 netmask 0xffffff00 broadcast 10.62.10.255 media: Ethernet autoselect (100baseTX ) status: active em1: flags=8802 metric 0 mtu 1500 options=19b ether 00:15:17:10:84:6d media: Ethernet autoselect status: no carrier lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 --- END ifconfig -a (waldorf) ./netif em0 em0 em1 --- BEGIN ifconfig -a (STINGRAY) ifconfig -a fxp0: flags=8843 metric 0 mtu 1500 options=8 ether 00:a0:c9:ce:c8:64 inet 10.62.10.12 netmask 0xffffff00 broadcast 10.62.10.255 media: Ethernet autoselect (100baseTX ) status: active fxp1: flags=8843 metric 0 mtu 1500 options=8 ether 00:a0:c9:ce:db:83 media: Ethernet autoselect (100baseTX ) status: active pflog0: flags=141 metric 0 mtu 33204 lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 vlan0: flags=8843 metric 0 mtu 1500 ether 00:a0:c9:ce:db:83 media: Ethernet autoselect (100baseTX ) status: active vlan: 7 parent interface: fxp1 tun0: flags=8051 metric 0 mtu 1492 inet 87.149.231.190 --> 217.0.119.167 netmask 0xffffffff Opened by PID 27503 --- END ifconfig -a (STINGRAY) ./netif32 fxp0 fxp0 fxp1 Why aren't lo0, vlan0 and tun0 not included? What can I do to get these entries (portable way, please). Best regards, Jens