The ip_wccp kernel module is a simple implementation of WCCP decapsulation
for Linux 2.4 and later.

To compile and install the module just run

  make install

Then load the module by

  modprobe ip_wccp

Please note that this module is mutually exclusive with the ip_gre module.
Only one of the two may be active at a given time. If you need GRE support
in addition to WCCP then you need to use a patched ip_gre module with WCCP
support, not ip_wccp (this implementation).

If using Linux-2.4 you most likely need to first build and install your
own kernel. While it is theoretically possible to build extra modules
to the binary kernels shipped by the Linux distribution vendors is a
tricky business and left as an excersise to the reader if needed and is
usually not officially supported, hence the recommendation to build a
custom kernel. See the documentation accompanying your Linux distribution
for instructions on how to build a custom kernel for your distribution.


It is possible to build the module for another kernel version than the
currently running version by setting the KERNELSRC variable to where
your kernel sources can be found

  make KERNELSRC=/path/to/your/kernelsource install

It is also possible to separate the build and install process, for example
when building as non-root. To just build the module use

  make module

or

  make KERNELSRC=/path/to/your/kernelsource module


Please note that when installing the module for another kernel version than
the currently running version "depmod -a" is not invoked, and it is your
responsibility to ensure this gets done correctly. Most distributions
automatically runs "depmod -a" while booting so this usually is not a problem.
