View | Details | Raw Unified | Return to bug 42848
Collapse All | Expand All

(-)network_io/unix/sockopt.c (+11 lines)
Lines 17-22 Link Here
17
#include "apr_arch_networkio.h"
17
#include "apr_arch_networkio.h"
18
#include "apr_strings.h"
18
#include "apr_strings.h"
19
19
20
#if !defined(SOL_IP)
21
#define SOL_IP IPPROTO_IP
22
#endif
20
23
21
static apr_status_t soblock(int sd)
24
static apr_status_t soblock(int sd)
22
{
25
{
Lines 318-323 Link Here
318
        return APR_ENOTIMPL;
321
        return APR_ENOTIMPL;
319
#endif
322
#endif
320
        break;
323
        break;
324
    case APR_SO_IPTOS:
325
#if defined(IP_TOS)
326
	if (setsockopt(sock->socketdes, SOL_IP, IP_TOS, (void *)&on, sizeof(int)) == -1) {
327
	    return errno;
328
	}
329
#else
330
	return APR_ENOTIMPL;
331
#endif
321
    default:
332
    default:
322
        return APR_EINVAL;
333
        return APR_EINVAL;
323
    }
334
    }
(-)include/apr.h.in (+2 lines)
Lines 82-89 Link Here
82
#define APR_HAVE_MSWSOCK_H       @mswsockh@
82
#define APR_HAVE_MSWSOCK_H       @mswsockh@
83
#define APR_HAVE_NETDB_H         @netdbh@
83
#define APR_HAVE_NETDB_H         @netdbh@
84
#define APR_HAVE_NETINET_IN_H    @netinet_inh@
84
#define APR_HAVE_NETINET_IN_H    @netinet_inh@
85
#define APR_HAVE_NETINET_IN_SYSTM_H @netinet_in_systmh@
85
#define APR_HAVE_NETINET_SCTP_H  @netinet_sctph@
86
#define APR_HAVE_NETINET_SCTP_H  @netinet_sctph@
86
#define APR_HAVE_NETINET_SCTP_UIO_H @netinet_sctp_uioh@
87
#define APR_HAVE_NETINET_SCTP_UIO_H @netinet_sctp_uioh@
88
#define APR_HAVE_NETINET_IP_H    @netinet_iph@
87
#define APR_HAVE_NETINET_TCP_H   @netinet_tcph@
89
#define APR_HAVE_NETINET_TCP_H   @netinet_tcph@
88
#define APR_HAVE_PTHREAD_H       @pthreadh@
90
#define APR_HAVE_PTHREAD_H       @pthreadh@
89
#define APR_HAVE_SEMAPHORE_H     @semaphoreh@
91
#define APR_HAVE_SEMAPHORE_H     @semaphoreh@
(-)include/apr.hw (+2 lines)
Lines 127-134 Link Here
127
#define APR_HAVE_MSWSOCK_H       APR_NOT_IN_WCE
127
#define APR_HAVE_MSWSOCK_H       APR_NOT_IN_WCE
128
#define APR_HAVE_NETDB_H        0
128
#define APR_HAVE_NETDB_H        0
129
#define APR_HAVE_NETINET_IN_H   0
129
#define APR_HAVE_NETINET_IN_H   0
130
#define APR_HAVE_NETINET_IN_SYSTM_H 0
130
#define APR_HAVE_NETINET_SCTP_H 0
131
#define APR_HAVE_NETINET_SCTP_H 0
131
#define APR_HAVE_NETINET_SCTP_UIO_H 0
132
#define APR_HAVE_NETINET_SCTP_UIO_H 0
133
#define APR_HAVE_NETINET_IP_H   0
132
#define APR_HAVE_NETINET_TCP_H  0
134
#define APR_HAVE_NETINET_TCP_H  0
133
#define APR_HAVE_PTHREAD_H      0
135
#define APR_HAVE_PTHREAD_H      0
134
#define APR_HAVE_SEMAPHORE_H    0
136
#define APR_HAVE_SEMAPHORE_H    0
(-)include/arch/unix/apr_arch_networkio.h (+6 lines)
Lines 52-57 Link Here
52
#if APR_HAVE_NETINET_TCP_H
52
#if APR_HAVE_NETINET_TCP_H
53
#include <netinet/tcp.h>
53
#include <netinet/tcp.h>
54
#endif
54
#endif
55
#if APR_HAVE_NETINET_IN_SYSTM_H
56
#include <netinet/in_systm.h>
57
#endif
58
#if APR_HAVE_NETINET_IP_H
59
#include <netinet/ip.h>
60
#endif
55
#if APR_HAVE_NETINET_SCTP_UIO_H
61
#if APR_HAVE_NETINET_SCTP_UIO_H
56
#include <netinet/sctp_uio.h>
62
#include <netinet/sctp_uio.h>
57
#endif
63
#endif
(-)include/apr_network_io.h (+1 lines)
Lines 103-108 Link Here
103
                                    * until data is available.
103
                                    * until data is available.
104
                                    * @see apr_socket_accept_filter
104
                                    * @see apr_socket_accept_filter
105
                                    */
105
                                    */
106
#define APR_SO_IPTOS         65536 /**< Set IP ToS markings on traffic. */
106
107
107
/** @} */
108
/** @} */
108
109
(-)include/apr.hnw (+3 lines)
Lines 99-111 Link Here
99
#define APR_HAVE_ARPA_INET_H            0
99
#define APR_HAVE_ARPA_INET_H            0
100
#define APR_HAVE_NETDB_H                0
100
#define APR_HAVE_NETDB_H                0
101
#define APR_HAVE_NETINET_IN_H           0
101
#define APR_HAVE_NETINET_IN_H           0
102
#define APR_HAVE_NETINET_IN_SYSTM_H     0
102
#else
103
#else
103
#define APR_HAVE_ARPA_INET_H            1
104
#define APR_HAVE_ARPA_INET_H            1
104
#define APR_HAVE_NETDB_H                1
105
#define APR_HAVE_NETDB_H                1
105
#define APR_HAVE_NETINET_IN_H           1
106
#define APR_HAVE_NETINET_IN_H           1
107
#define APR_HAVE_NETINET_IN_SYSTM_H     1
106
#endif
108
#endif
107
#define APR_HAVE_NETINET_SCTP_H         0
109
#define APR_HAVE_NETINET_SCTP_H         0
108
#define APR_HAVE_NETINET_SCTP_UIO_H     0
110
#define APR_HAVE_NETINET_SCTP_UIO_H     0
111
#define APR_HAVE_NETINET_IP_H           0
109
#define APR_HAVE_NETINET_TCP_H          0
112
#define APR_HAVE_NETINET_TCP_H          0
110
#define APR_HAVE_PTHREAD_H              0
113
#define APR_HAVE_PTHREAD_H              0
111
#define APR_HAVE_SIGNAL_H               1
114
#define APR_HAVE_SIGNAL_H               1
(-)configure.in (+24 lines)
Lines 1260-1265 Link Here
1260
    kernel/OS.h		\
1260
    kernel/OS.h		\
1261
    net/errno.h		\
1261
    net/errno.h		\
1262
    netinet/in.h	\
1262
    netinet/in.h	\
1263
    netinet/in_systm.h	\
1263
    netinet/sctp.h      \
1264
    netinet/sctp.h      \
1264
    netinet/sctp_uio.h  \
1265
    netinet/sctp_uio.h  \
1265
    sys/file.h		\
1266
    sys/file.h		\
Lines 1300-1305 Link Here
1300
   netinet_tcph=0
1301
   netinet_tcph=0
1301
fi
1302
fi
1302
1303
1304
# Debian has a similiar problem with <netinet/ip.h> wihich prevents it
1305
# from being included by itself.  Check for <netinet/ip.h> manually,
1306
# including another header file first.
1307
AC_CACHE_CHECK([for netinet/ip.h], [apr_cv_hdr_netinet_ip_h],
1308
[AC_TRY_CPP(
1309
[#ifdef HAVE_NETINET_IN_H
1310
#include <netinet/in.h>
1311
#endif
1312
#ifdef HAVE_NETINET_IN_SYSTM_H
1313
#include <netinet/in_systm.h>
1314
#endif
1315
#include <netinet/ip.h>
1316
], [apr_cv_hdr_netinet_ip_h=yes], [apr_cv_hdr_netinet_ip_h=no])])
1317
cat conftest.c >> /dev/tty
1318
if test "$apr_cv_hdr_netinet_ip_h" = "yes"; then
1319
   netinet_iph=1
1320
   AC_DEFINE([HAVE_NETINET_IP_H], 1, [Defined if netinet/ip.h is present])
1321
else
1322
   netinet_iph=0
1323
fi
1324
1303
AC_SUBST(arpa_ineth)
1325
AC_SUBST(arpa_ineth)
1304
AC_SUBST(conioh)
1326
AC_SUBST(conioh)
1305
AC_SUBST(ctypeh)
1327
AC_SUBST(ctypeh)
Lines 1313-1318 Link Here
1313
AC_SUBST(mswsockh)
1335
AC_SUBST(mswsockh)
1314
AC_SUBST(netdbh)
1336
AC_SUBST(netdbh)
1315
AC_SUBST(netinet_inh)
1337
AC_SUBST(netinet_inh)
1338
AC_SUBST(netinet_in_systmh)
1339
AC_SUBST(netinet_iph)
1316
AC_SUBST(netinet_sctph)
1340
AC_SUBST(netinet_sctph)
1317
AC_SUBST(netinet_sctp_uioh)
1341
AC_SUBST(netinet_sctp_uioh)
1318
AC_SUBST(netinet_tcph)
1342
AC_SUBST(netinet_tcph)
(-)build/aprenv.py (+2 lines)
Lines 225-231 Link Here
225
    kernel/OS.h
225
    kernel/OS.h
226
    net/errno.h
226
    net/errno.h
227
    netinet/in.h
227
    netinet/in.h
228
    netinet/in_systm.h
228
    netinet/sctp.h
229
    netinet/sctp.h
230
    netinet/ip.h
229
    netinet/tcp.h
231
    netinet/tcp.h
230
    netinet/sctp_uio.h
232
    netinet/sctp_uio.h
231
    sys/file.h
233
    sys/file.h

Return to bug 42848