httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject apache_1.2b5-dev: proxy_connect.c: Undefined symbol inet_aton
Date Tue, 07 Jan 1997 11:58:30 GMT
Hi,

First of all, let me wish you all a happy and successful new year 1997!

I just tried to compile the 1.2b5-dev version of apache; in the cvs-rev
1.8, the ProxyBlock directive was added, but it uses a function
inet_aton() which is available on none of the SVR4 releases I have access
to (including a fairly recent SVR4.2).

Can this passage be made a little more portable, please?

+/* check if ProxyBlock directive on this host */
+    inet_aton(host, &destaddr);
+    for (i=0; i < conf->noproxies->nelts; i++)
+    {
+        if ((npent[i].name != NULL && strstr(host, npent[i].name) != NULL)
+          || destaddr.s_addr == npent[i].addr.s_addr || npent[i].name[0] == '*')
+            return proxyerror(r, "Connect to remote machine blocked");
+    }
+

Thanks,
    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message