> If anybody could offer some advice, or point me in the right direction, as
> to where I could find out all the inserted code that would need to be
added
> to IPVS (ie, the antefacto patch which patches the IPVS and kernel
source),
> this would be really helpful for everyone. I've looked over the IPVS
source
> code myself, and found where the other IPVS sysctls are added, but I just
> don't understand it well enough to know what I'm doing.
I didn't see your question answered, so I thought I'd chime in with a bit of
help.
http://www.tldp.org/LDP/lkmpg/
It is a bit old, but it should at least point you in the right direction.
specifically, look into proc_register and the procfile_read(char *buffer,
char *buffer_location, off_t offset, int buffer_length, int zero) callback.
You basically just want a static char *antefacto_ident (which is set to
"antefacto-2.4.19-1.0.7" at compile time) and set *buffer_location=ident in
the callback, returning strlen(ident).
You'll want to work with the antefacto patch applied, and generate another
patch from the antefacto-patched source. That way, hopefully, you should be
able to apply antefacto and then antefacto-ident (or whatever you call it)
in order to the vanilla kernel without issues.
-Jacob
|