From: "Harald Küthe" <Harald.Kuethe@controlware.de>
To: bridge@lists.osdl.org
Subject: [Bridge] Little problem with 1.x versions (if_indextoname)
Date: Thu, 03 Jun 2004 09:37:34 +0200 [thread overview]
Message-ID: <s0bef17a.034@post2.controlware.de> (raw)
Hi,
I have used bridge-utils 0.9.6 so far in a kernel 2.4.26, uClibc and ppc environment.
When I use version 1.0.3 I have the problem that I do not see the brige with the 'brctl show' command if it is not fully set up. It was working with 0.9.6.
I tracked the problem down to an 'incompatibility' in bridge/uClibc/kernel.
0.9.6 uses its own if_indextoname function which uses the SIOCGIFNAME ioctl which works with the kernel.
Version 1.x uses the libc if_indextoname (here uClibc) which uses the SIOCGIFCONF ioctl and scans the if list to resolv the name for an if_index.
The kernel will not send back interfaces which do not have an ip address (or exactly only for protocol family inet or decnet).
So if the bridge does not have an ip address the name resolution fails and old_foreach_bridge() fails as well.
I'm not sure who has the problem now (kernel, uClibc, bridge) , but I think I will insert if_indextoname() back to the bridge.
I hope that this information is useful.
Regards
Harald Küthe
next reply other threads:[~2004-06-03 7:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-03 7:37 Harald Küthe [this message]
2004-06-03 17:41 ` [Bridge] Little problem with 1.x versions (if_indextoname) Stephen Hemminger
2004-06-12 8:42 ` [uClibc] " Erik Andersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s0bef17a.034@post2.controlware.de \
--to=harald.kuethe@controlware.de \
--cc=bridge@lists.osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.