From owner-freebsd-net@FreeBSD.ORG Mon Jul 21 20:39:53 2008 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 B64171065682 for ; Mon, 21 Jul 2008 20:39:53 +0000 (UTC) (envelope-from rehsack@web.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.freebsd.org (Postfix) with ESMTP id 27EBB8FC18 for ; Mon, 21 Jul 2008 20:39:52 +0000 (UTC) (envelope-from rehsack@web.de) Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 91981E8E238F for ; Mon, 21 Jul 2008 22:39:51 +0200 (CEST) Received: from [87.149.238.94] (helo=waldorf.muppets.liwing.de) by smtp08.web.de with esmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1KL2Ah-0004OZ-00 for freebsd-net@freebsd.org; Mon, 21 Jul 2008 22:39:51 +0200 Message-ID: <4884F401.4050103@web.de> Date: Mon, 21 Jul 2008 20:39:29 +0000 From: Jens Rehsack User-Agent: Thunderbird 2.0.0.14 (X11/20080703) MIME-Version: 1.0 To: FreeBSD Net Content-Type: multipart/mixed; boundary="------------090500060505080409030307" Sender: rehsack@web.de X-Sender: rehsack@web.de X-Provags-ID: V01U2FsdGVkX19bu71dSQpFRC3V5yDVtFNclFDAANUwKg2PojR8 YC069RJ4bcragEiyCrgh3v+/4636EYCb7v8W69voQXRGoi29gZ OdvhosWrE= X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: lo0 not in ioctl( SIOCGIFCONF ) 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: Mon, 21 Jul 2008 20:39:53 -0000 This is a multi-part message in MIME format. --------------090500060505080409030307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, maybe this question is better asked in this list ... 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 --------------090500060505080409030307--