lo0 not in ioctl( SIOCGIFCONF )

Brooks Davis brooks at freebsd.org
Mon Jul 21 20:47:42 UTC 2008


> 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 ..

The attachment didn't make it through.

-- Brooks

On Mon, Jul 21, 2008 at 08:39:29PM +0000, Jens Rehsack wrote:
> 
> --- BEGIN ifconfig -a (waldorf)
> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
> 	ether 00:15:17:10:84:6c
> 	inet 10.62.10.3 netmask 0xffffff00 broadcast 10.62.10.255
> 	media: Ethernet autoselect (100baseTX <full-duplex>)
> 	status: active
> em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
> 	ether 00:15:17:10:84:6d
> 	media: Ethernet autoselect
> 	status: no carrier
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=8<VLAN_MTU>
> 	ether 00:a0:c9:ce:c8:64
> 	inet 10.62.10.12 netmask 0xffffff00 broadcast 10.62.10.255
> 	media: Ethernet autoselect (100baseTX <full-duplex>)
> 	status: active
> fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=8<VLAN_MTU>
> 	ether 00:a0:c9:ce:db:83
> 	media: Ethernet autoselect (100baseTX <full-duplex>)
> 	status: active
> pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33204
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	ether 00:a0:c9:ce:db:83
> 	media: Ethernet autoselect (100baseTX <full-duplex>)
> 	status: active
> 	vlan: 7 parent interface: fxp1
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> 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
> 
> 

> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20080721/398aecb1/attachment.pgp


More information about the freebsd-net mailing list