Thanks a lot for the suggestions.

> Then what you need is exactly mod_throttle.
> mod_throttle project is discontinued but the latest version works just fine 
> and does it job very well.
> I use it with stock Apache since OpenBSD 3.4 and never had problems with it.

Could you tell me the version of your mod_throttle, please? I've downloaded the 
3.1.2 one (mod_throttle312.tgz), tried to compile, but got the following errors:

mod_throttle.c:726: error: redefinition of `union semun'
mod_throttle.c: In function `access_handler':
mod_throttle.c:2814: error: structure has no member named `sin_addr'
mod_throttle.c: In function `log_handler':
mod_throttle.c:3188: error: structure has no member named `sin_addr'
apxs:Break: Command failed with rc=1
*** Error code 1

Stop in /root/mod_throttle-3.1.2 (line 24 of Makefile).

Then, I opened the mod_throttle.c file and changed the following line:
defined(__FreeBSD__) || defined(__NetBSD__)
with
defined(__FreeBSD__) || defined(__NetBSD__)  || defined(__OpenBSD__)

& compiled it again. The first error (redefinition of union semun) did not 
appear anymore. The others remained and i couldn't go more far..

Any ideas for "structure has no member named `sin_addr'" error? 

Many thanks,
Best Regards.

// Ozgur Kazancci

Reply via email to