[lkml]   [1999]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: IP Masq weirdness
Fair enough :)

As a general question, both of these ips will have the same gateway. It's a
point to point interface, so i didn't specify a gateway for the ip i added,
but the dialup ip has a peer entry. So this is in ip_masq_user.c:

if ((ret=ip_route_output(&rt, rt_daddr, rt_saddr, tos, 0 /* dev
*/))) {
IP_MASQ_DEBUG(0-debug, "could not setup maddr for routing
daddr=%lX, saddr=%l$
ntohl(rt_daddr), ntohl(rt_saddr));
return ret;
dev = rt->;
ums->maddr = ip_masq_select_addr(dev, rt->rt_gateway,

Doesn't this look up the output device, then choose an address for the local
connection from the device list, but base it on the gateway instead of the
destination? Is that correct?

It looks like the devinet change will just select the first ip now instead
of the last (2.2.10). Not sure what that was fixed for. It should fix my
problem, but then if i add a 3rd ip, and i'm still choosing the middle ip
with ip route, it should use the 3rd ip.

Or i could be wrong. I"m trying to understand. :)

Joseph Gooch

> -----Original Message-----
> From: []
> Sent: Sunday, October 17, 1999 3:37 PM
> To: Joseph Gooch
> Cc:
> Subject: Re: IP Masq weirdness
> Hello!
> > Why does it have to be outside of the ip_masq code?
> I was asked and I tried to locate the reson inside area of my
> competence 8)8)
> Alexey

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:54    [W:0.047 / U:0.448 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site