LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

netfilter hooks

To: Linux Virtual Server Mailing List <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: netfilter hooks
From: Tao Zhao <taozhao@xxxxxxxxxx>
Date: Wed, 11 Jul 2001 17:49:43 -0400 (EDT)
I am not sure if this list is the right place to ask this question. If
not, please let me know where I should send it.

I am reading the source code of LVS and found out that it adds ip_vs_in()
to netfilter hook NF_IP_LOCAL_IN to change the destination of packets. As
I understand, this hook is called AFTER routing decisions have reached. So
how can it forwards the packet to the new assinged destination without
routing? I thought the right place to change destination is the
NF_IP_PRE_ROUTING hook. Am I missing something?

I know I need read more code. But a quick answer of this will help me.

Thanks,
-Tao



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