[Ns-bugs] [Bug 85] New: NetDevice::m_ifIndex not the same as Ipv4's ifIndex
bugzilla-daemon at nsnam-www.ece.gatech.edu
Sun Oct 7 21:46:57 PDT 2007
Summary: NetDevice::m_ifIndex not the same as Ipv4's ifIndex
Component: node module
AssignedTo: ns-bugs at isi.edu
ReportedBy: tomh at tomh.org
This is a reminder that we ought to consider an alternative to using ifIndex
both in the NetDevice and in the API for Ipv4. These two indices are not the
same; namely, the Ipv4 ifIndex (the underlying variable is
Ipv4L3Protocol::m_nInterfaces) is often one greater than the NetDevice ifIndex
due to the Ipv4 loopback interface not having a corresponding NetDevice.
At least we should consider changing one of these names because otherwise some
subtle programming errors are likely.
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs