[Dnsmasq-discuss] Help me please! Multiple IPs on one interface - not working

Sorin Panca sorin.panca at gmail.com
Tue Nov 15 22:26:24 GMT 2005



Simon Kelley wrote:
> Sorin Panca wrote:
> <Good stuff>
> 
> OK, I checked all of that carefully, I can't see any configuration
> problems, and what you are trying to do should work fine.
> 
> The behaviour that you are seeing can be explained perfectly if only the
> first address assigned to an interface is be used. This points to the
> netlink code, which is used to find the list of all the addresses on an
> interface. If that fails, it silently drops back to the older API which
> finds only one interface.
> 
> It's even possible that the binary you have was compiled without netlink
> support, but that's unlikely unless Gentoo have done very strange things.

The first thing after I installed Gentoo I configured and cmpiled the
kernel with everything I need, so emerging future programs would have
support for what I need.

> This code tested fine here, so it's likely there's something different
> between my system and yours.
> 
> How we proceed depends on your abilities with gdb. If you are familiar
> with running code under gdb, I can give you a breakpoint, and you can
> single step through the relevant code and send me the results. If you
> don't know gdb, we can get the same effect, but I'll need to send you a
> specially instrumted version of the code to run.
> 

I'm mot a developer, althow I wish I was... I compiled dnsmasq by
emerging it with the utility emerge.
Other programs that use multiple interfaces worked fine. I tested with
aliases too, thinking that was old code in the linux's kernel. Now,
before making any more trouble to you, I have to test it by compiling
the sources that are on your project's web site. I think that those
files are relevant to you and if the compiled from sources version
works, I'll announce Gentoo's developers that may be something wrong
with my USE flags or with the ebuild, and I'll try to find the errors
with their help.
I have enough experience with manually compiling programs, though... So
I think I can do this task.
Tomorrow I'll make the results known to you.
If that doesn't work i'll emerge gdb and learn how to use it. Or, at
your kindly advice, I'll use the code that you can provide to test what
goes wrong.

Cheers,

Sorin.



More information about the Dnsmasq-discuss mailing list