httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_connection.c
Date Fri, 03 Nov 2000 02:17:56 GMT
dreid       00/11/02 18:17:56

  Modified:    src/main http_connection.c
  Log:
  We don't really want to fool around with socket structures if we don't have to,
  and in this case we can get the ip address directly from the socket.  This
  should mean that if we add more protocol support we don't have to worry about
  this.  No doubt this is the first of many such changes...
  
  Revision  Changes    Path
  1.58      +2 -5      apache-2.0/src/main/http_connection.c
  
  Index: http_connection.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_connection.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- http_connection.c	2000/11/01 15:42:50	1.57
  +++ http_connection.c	2000/11/03 02:17:56	1.58
  @@ -286,16 +286,13 @@
   
       conn->pool = p;
       conn->local_addr = *saddr;
  -    conn->local_ip = apr_pstrdup(conn->pool,
  -				inet_ntoa(conn->local_addr.sin_addr));
  +    apr_get_local_ipaddr(&conn->local_ip, inout);
       conn->base_server = server;
       conn->client = conn_io;
       conn->client_socket = inout;
   
       conn->remote_addr = *remaddr;
  -    conn->remote_ip = apr_pstrdup(conn->pool,
  -			      inet_ntoa(conn->remote_addr.sin_addr));
  -    
  +    apr_get_remote_ipaddr(&conn->remote_ip, inout);   
       conn->id = id;
   
       return conn;
  
  
  

Mime
View raw message