[Ns-bugs] [Bug 85] New: NetDevice::m_ifIndex not the same as Ipv4's ifIndex
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Sun Oct 7 21:46:57 PDT 2007
http://www.nsnam.org/bugzilla/show_bug.cgi?id=85
Summary: NetDevice::m_ifIndex not the same as Ipv4's ifIndex
Product: ns-3
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P5
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
mailing list