LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

setsockopt() question

To: Linux Virtual Server Mailing List <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: setsockopt() question
From: Tao Zhao <taozhao@xxxxxxxxxx>
Date: Wed, 25 Jul 2001 03:24:25 -0400 (EDT)
Hi,

I'm reading source code of LVS (version 0.81 for 2.4.5 kernel). There is
one part I'm not quite clear. As I understand in ipvsadm.c
setsockopt() with SOCK_RAW passes an ip_vs_rule_user structure to the
kernel. And in ip_vs_ctl.c nf_register_sockopt() registers handlers for
the data passed from ipvsadm process.

But I don't understand how these two parts get together. It seems to me,
by reading sys_setsockopt() and nf_register_sockopt() source code, they
are not connected. I must be missing something...

Thanks,
-Tao



<Prev in Thread] Current Thread [Next in Thread>
  • setsockopt() question, Tao Zhao <=