Hai experts!
Now I am reading the lvs source code.But I have met a problem.The problem
is where is the base type of "struct ip_vs_dest* (*schedule)(struct
ip_vs_service *svc,struct iphdr *iph); ".Where I can find it?Please can you
help me,thanks.
yuanyong
/*
* The scheduler object
*/
struct ip_vs_scheduler {
struct list_head n_list; /* d-linked list head */
char *name; /* scheduler name */
atomic_t refcnt; /* reference counter */
struct module *module; /* THIS_MODULE/NULL */
/* scheduler initializing service */
int (*init_service)(struct ip_vs_service *svc);
/* scheduling service finish */
int (*done_service)(struct ip_vs_service *svc);
/* scheduler updating service */
int (*update_service)(struct ip_vs_service *svc);
/* selecting a server from the given service */
struct ip_vs_dest* (*schedule)(struct ip_vs_service *svc,
struct iphdr *iph);
};
=============================================================
ÅÌÖг¬¼¶Ó¯Àû¾¡ÔÚÕÆÎÕ ÏíÊÜÀÉýµÄ¿ì¸Ð
http://list.163.com/mlist/pzjg/pzjg.htm
°Ù·Ö°ÙÅ®ÓÑ - ´º¼¾Ñ¡ÃÀ»î¶¯! http://love.163.com
¸öÈË¿Õ¼äÃâ·ÑÊÔÓà http://www.nease.net
|