This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: SNMP and PPP update
On Fri, May 14, 2004 at 07:58:05AM -0700, Matt Jerdonek wrote:
> Andrew,
>
> I have 2 network interfaces now (ethernet and PPP).
> There were 2 problems in helpers.c
> 1) The variable 'index' would not be incremented
> unless the ifnet_addrs[index] was NULL. Therefore,
> the SNMP manager was showing that I had two ethernet
> interfaces. Basically, it showed the first interface
> twice.
>
> 2) After I corrected #1, the SNMP manager showed my
> two interfaces as ethernet and loopback. So, I added
> the if statement to skip the loopback interface. Now
> the manager correctly shows an ethernet and PPP
> interface.
I think the loopback interface should be seen. It is an interface, has
an IP address etc. IFDESC knowns about it as well. Could you produce
another version of the patch which lists the loopback device as well
as your eth0 and ppp0 device.
Thanks
Andrew