The 'dnet' utility lists the primary IP on each interface, including the subnet mask in CIDR notation.  But I don't see any subnet masks for the alias/secondary interfaces.  I tried it with the Python extentions and saw the same results.

Am I missing something?  Can 'libdnet' get the alias subnets, or do the 'dnet' utility and the 'python' functions implement the limit of functionality?  Basically, I'm wondering whether this is a problem with how I'm using the library, or whether the functionality just isn't there.

Any help would be much appreciated.


For reference, here's the output I get from the 'dnet' utility:
[ryan.b.lynch@caffeine ~]# dnet intf show
lo: flags=0x3<UP,LOOPBACK> mtu 16436
        alias ::1
eth1: flags=0x30<BROADCAST,MULTICAST> mtu 1500
        link 00:0e:35:b3:aa:a7
eth0: flags=0x31<UP,BROADCAST,MULTICAST> mtu 1500
        link 00:11:43:65:e5:b5
        alias fe80::211:43ff:fe65:e5b5/64
pan0: flags=0x30<BROADCAST,MULTICAST> mtu 1500
        link 12:b6:b7:36:9d:7e

And here's what 'ip addr' has to say:
[rryan.b.lynch@caffeine ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0e:35:b3:aa:a7 brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:11:43:65:e5:b5 brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth0
    inet scope global eth0
    inet brd scope global secondary eth0:0
    inet brd scope global secondary eth0:1
    inet6 fe80::211:43ff:fe65:e5b5/64 scope link
       valid_lft forever preferred_lft forever
4: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether 12:b6:b7:36:9d:7e brd ff:ff:ff:ff:ff:ff