]> granicus.if.org Git - apache/commitdiff
simplify the way we find the family of an apr_sockaddr_t
authorJeff Trawick <trawick@apache.org>
Tue, 12 Mar 2002 23:15:54 +0000 (23:15 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 12 Mar 2002 23:15:54 +0000 (23:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93884 13f79535-47bb-0310-9956-ffa450edef68

server/listen.c
server/mpm/beos/beos.c
server/mpm/mpmt_os2/mpmt_os2.c
support/ab.c

index 24924c39c6689d5ae3d208da14f3727f3a9b02c9..6d7eb686b6309658048c5eb510d2742b71a67f2e 100644 (file)
@@ -272,7 +272,7 @@ static void alloc_listener(process_rec *process, char *addr, apr_port_t port)
         return;
     }
     if ((status = apr_socket_create(&new->sd,
-                                    new->bind_addr->sa.sin.sin_family,
+                                    new->bind_addr->family,
                                     SOCK_STREAM, process->pool))
         != APR_SUCCESS) {
         ap_log_perror(APLOG_MARK, APLOG_CRIT, status, process->pool,
index c424f8cba47ee086682451daea5669c5c6cf1c8d..ff9dad00d4435fbc096b8390c2ded56c799d46c5 100644 (file)
@@ -782,7 +782,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
             "couldn't create control socket information, shutting down");
         return 1;
     }
-    if (apr_socket_create(&udp_sock, udp_sa->sa.sin.sin_family, SOCK_DGRAM,
+    if (apr_socket_create(&udp_sock, udp_sa->family, SOCK_DGRAM,
                       _pconf) != APR_SUCCESS){
         ap_log_error(APLOG_MARK, APLOG_ALERT, errno, s,
             "couldn't create control socket, shutting down");
index bf2f4cc0e2cac5b40c666345bed278f3d687e1c4..96ba77a23b1bef6a40b95440137dd13529137627 100644 (file)
@@ -181,7 +181,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s )
             ap_listeners = lr;
             apr_sockaddr_info_get(&lr->bind_addr, "0.0.0.0", APR_UNSPEC,
                                   DEFAULT_HTTP_PORT, 0, s->process->pool);
-            apr_socket_create(&lr->sd, lr->bind_addr->sa.sin.sin_family,
+            apr_socket_create(&lr->sd, lr->bind_addr->family,
                               SOCK_STREAM, s->process->pool);
         }
 
index bd84d0c4b26987080393a5432221b268ed31bb0d..3d2de47ac5a9de640cd137512bd40cb388aa37c5 100644 (file)
@@ -849,7 +849,7 @@ static void start_connect(struct connection * c)
         apr_pool_destroy(c->ctx);
     apr_pool_create(&c->ctx, cntxt);
 
-    if ((rv = apr_socket_create(&c->aprsock, destsa->sa.sin.sin_family,
+    if ((rv = apr_socket_create(&c->aprsock, destsa->family,
                                SOCK_STREAM, c->ctx)) != APR_SUCCESS) {
        apr_err("socket", rv);
     }
@@ -1302,14 +1302,14 @@ static void test(void)
 static void copyright(void)
 {
     if (!use_html) {
-       printf("This is ApacheBench, Version %s\n", AP_SERVER_BASEREVISION " <$Revision: 1.87 $> apache-2.0");
+       printf("This is ApacheBench, Version %s\n", AP_SERVER_BASEREVISION " <$Revision: 1.88 $> apache-2.0");
        printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
        printf("Copyright (c) 1998-2001 The Apache Software Foundation, http://www.apache.org/\n");
        printf("\n");
     }
     else {
        printf("<p>\n");
-       printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_SERVER_BASEREVISION, "$Revision: 1.87 $");
+       printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_SERVER_BASEREVISION, "$Revision: 1.88 $");
        printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
        printf(" Copyright (c) 1998-2001 The Apache Software Foundation, http://www.apache.org/<br>\n");
        printf("</p>\n<p>\n");