LARTC
[Top] [All Lists]

Re: [LARTC] Load Balance and SNAT problem.

To: Mail List - Linux Advanced Routing and Traffic Control <lartc@mailman.ds9a.nl>
Subject: Re: [LARTC] Load Balance and SNAT problem.
From: Grant Taylor <gtaylor@riverviewtech.net>
Date: Tue, 26 Jun 2007 22:16:53 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <000101c7b868$4f153d10$b9021d0a@SalimSi>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <000101c7b868$4f153d10$b9021d0a@SalimSi>
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: Thunderbird 2.0.0.4 (Windows/20070604)
On 6/26/2007 10:07 PM, Salim S I wrote:
        for (rth = rt_hash_table[hash].chain; rth; rth = rth->u.rt_next)
{
                if (rth->key.dst == key->dst &&
                    rth->key.src == key->src &&
                    rth->key.iif == 0 &&
                    rth->key.oif == key->oif &&
#ifdef CONFIG_IP_ROUTE_FWMARK
                    rth->key.fwmark == key->fwmark &&
#endif
                    !((rth->key.tos ^ key->tos) &
(IPTOS_RT_MASK | RTO_ONLINK)))

I'm no C programmer, but it looks like the source, destination, in interface, and out interface are all part of the conditional, thus leading us to believe that caching (?) might be per combination of all the above?



Grant. . . .
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>