How ignore the arp request

2005-07-01 Thread shiner chen
I want to establish a web-cluster.Now i face with the problem how to configure the virtual ip in back-end server and how to ignore the arp request to virtual ip of back-end server. who can tell me ? please detail it !thanks

how to active the received function when the data arrived the socket in kld !

2005-06-03 Thread shiner chen
Inorder to impliment the dynamic load freeback policy ,I wrote a kld on the front-end of cluster server for collecting the load of back nodes. I don't want the acceptive thread to detect the data arrived socket continuously,because ,which will affect the performance of the front-end.i want to

a error about the kern_sendit

2005-06-02 Thread shiner chen
i wrote a function to send the data of my a data structure in my kld by socket in kernel, the function as follow: the arg 1 is file descriptor of socket. the arg 2 is the address of data structure. the arg 3 is the length of data structure and it is 20 bytes . the error return by kern_sendit

the error connection of socket in kernel(new)

2005-05-31 Thread shiner chen
In order to test the process of connection of socket in kernel ,I wrote a kld . When i load the kld ,the code try to connect the server of ftp,but i foud the code does not work right . the function , connect ,which return is right ,but ,when i see the status of connection by "netstat -a" , i fo

how to get the status of cpu in kernel?

2005-05-21 Thread shiner chen
In order to implement a dispacthing policy I want to get the status of cpu. I have read the code of top command and i find it get the status of cpu by the function : int sysctlbyname(const char *, void *, size_t *, void *, size_t); I search the code of kernel ,then I consider that i can get