BIND 10 #1529: ifconfig parser improvements

BIND 10 Development do-not-reply at isc.org
Wed Jan 18 16:17:39 UTC 2012


#1529: ifconfig parser improvements
---------------------------------------+----------------------------------
                   Reporter:  tomek    |                 Owner:
                       Type:  defect   |                Status:  new
                   Priority:  major    |             Milestone:  DHCP 2012
                  Component:  libdhcp  |            Resolution:
                   Keywords:           |             Sensitive:  0
            Defect Severity:  N/A      |           Sub-Project:  DHCP
Feature Depending on Ticket:           |  Estimated Difficulty:  0
        Add Hours to Ticket:  0        |           Total Hours:  0
                  Internal?:  0        |
---------------------------------------+----------------------------------

Comment (by jreed):

 I added another ifconfig output attachment, ifconfig-centos5.txt, for
 ifconfig 1.42 (2001-04-13) of net-tools 1.60 from net-tools-1.60-78.el5 on
 CentOS 5.3 / Linux 2.6.18-128.7.1.el5. The error was:

 {{{

 [ RUN      ] IfaceMgrTest.detectIfaces_linux
 IfaceMgr initialization.
 Linux: detecting interfaces.
 Detected interface lo/1, hwtype=772, maclen=6, mac=00:00:00:00:00:00,
 flags=10049(LOOPBACK UP RUNNING )
   2 addr(s):  127.0.0.1  ::1
 Detected interface eth0/2, hwtype=1, maclen=6, mac=00:30:48:ba:af:a4,
 flags=11043(UP RUNNING MULTICAST BROADCAST )
   3 addr(s):  149.20.57.205  2001:4f8:3:bf:230:48ff:feba:afa4
 fe80::230:48ff:feba:afa4
 Detected interface eth1/3, hwtype=1, maclen=6, mac=00:30:48:ba:af:a5,
 flags=1002(MULTICAST BROADCAST )
   0 addr(s):
 Detected interface sit0/4, hwtype=776, maclen=4, mac=00:00:00:00,
 flags=80()
   0 addr(s):
 ------Parsed interfaces---
 eth0: ifindex=0, mac=00:30:48:ba:af:a4, flags: UP RUNNING MULTICAST
 BROADCAST, addrs:149.20.57.205 2001:4f8:3:bf:230:48ff:feba:afa4
 fe80::230:48ff:feba:afa4
 eth1: ifindex=0, mac=00:30:48:ba:af:a5, flags: MULTICAST BROADCAST, addrs:
 lo: ifindex=0, mac=, flags: UP RUNNING, addrs:127.0.0.1 ::1
 sit0: ifindex=0, mac=, flags:, addrs:
 Checking interface lo
 Address 127.0.0.1 on iterface lo/1 matched with 'ifconfig -a' output.
 Address ::1 on iterface lo/1 matched with 'ifconfig -a' output.
 Checking interface eth0
 Address 149.20.57.205 on iterface eth0/2 matched with 'ifconfig -a'
 output.
 Address 2001:4f8:3:bf:230:48ff:feba:afa4 on iterface eth0/2 matched with
 'ifconfig -a' output.
 Address fe80::230:48ff:feba:afa4 on iterface eth0/2 matched with 'ifconfig
 -a' output.
 Checking interface eth1
 Checking interface sit0
 iface_mgr_unittest.cc:847: Failure
 Value of: i->mac_len_
   Actual: 0
 Expected: detected->mac_len_
 Which is: 4
 [  FAILED  ] IfaceMgrTest.detectIfaces_linux (3 ms)

 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/1529#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list