The following worked ...
((A guess: 2.6.xx/ folders are for older than 2.6.18, head/ for 2.6.26 etc.)
( The head/ files works for 2.6.26.8 !)) So 2.6.18 will be a combination :
cd usbip-0.1.7/drivers/2.6.21/
tar xvf linux-2.6.18.tar.bz2
(you can also use the hcd.h hub.h, you have in
your source.)
# cp linux-2.6.18/drivers/usb/core/{hcd.h,hub.h} \
/usr/src/kernels/2.6.18-128.1.14.el5-i686/drivers/usb/core/
mkdir backup && mv stub_rx.c backup/ && cp ../head/stub_rx.c .
..... where the last period ( . ) means the current directory.
mkdir headers
cp linux-2.6.18/drivers/usb/core/{hcd.h,hub.h} headers/
make KSOURCE=/usr/src/kernels/2.6.18-128.1.14.el5-i686/
And ... usbip_common_mod.ko , usbip.ko , vhci-hcd.ko are created.
( Replace "-128.1.14.el5-i686" with your actual version
of the installed package 'kernel-devel' ).
..
Good luck ! ..
P.S. : The latest source : usbip/linux/trunk .....
svn co
https://usbip.svn.sourceforge.net/svnroot/usbip usbip
( Same procedure as in all the above. (headers/ folder can be omitted.))
PPS.: Updating usbip-0.1.7 to usbip-0.1.7-3 :
http://usbip.sourcearchive.com/downloads/0.1.7-3/
http://usbip.sourcearchive.com/downl....1.7-3.diff.gz
> usbip_0.1.7-3.diff.gz
cd usbip-0.1.7/ && patch -p1 < usbip_0.1.7-3.diff
.. And again, the same procedure.