Diff for /embedaddon/dhcp/omapip/listener.c between versions 1.1 and 1.1.1.1

version 1.1, 2012/02/21 22:30:18 version 1.1.1.1, 2012/10/09 09:06:54
Line 3 Line 3
    Subroutines that support the generic listener object. */     Subroutines that support the generic listener object. */
   
 /*  /*
    * Copyright (c) 2012 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC")   * Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 1999-2003 by Internet Software Consortium   * Copyright (c) 1999-2003 by Internet Software Consortium
  *   *
Line 124  isc_result_t omapi_listen_addr (omapi_object_t *h, Line 125  isc_result_t omapi_listen_addr (omapi_object_t *h,
                                 status = ISC_R_UNEXPECTED;                                  status = ISC_R_UNEXPECTED;
                         goto error_exit;                          goto error_exit;
                 }                  }
        
 #if defined (HAVE_SETFD)  #if defined (HAVE_SETFD)
                 if (fcntl (obj -> socket, F_SETFD, 1) < 0) {                  if (fcntl (obj -> socket, F_SETFD, 1) < 0) {
                         status = ISC_R_UNEXPECTED;                          status = ISC_R_UNEXPECTED;
Line 140  isc_result_t omapi_listen_addr (omapi_object_t *h, Line 141  isc_result_t omapi_listen_addr (omapi_object_t *h,
                         status = ISC_R_UNEXPECTED;                          status = ISC_R_UNEXPECTED;
                         goto error_exit;                          goto error_exit;
                 }                  }
                
                 /* Try to bind to the wildcard address using the port number                  /* Try to bind to the wildcard address using the port number
                    we were given. */                     we were given. */
                 i = bind (obj -> socket,                  i = bind (obj -> socket,
Line 369  static void trace_listener_accept_input (trace_type_t  Line 370  static void trace_listener_accept_input (trace_type_t 
                         obj = (omapi_connection_object_t *)0;                          obj = (omapi_connection_object_t *)0;
                         status = omapi_listener_connect (&obj,                          status = omapi_listener_connect (&obj,
                                                          lp, 0, &remote_addr);                                                           lp, 0, &remote_addr);
                           if (status != ISC_R_SUCCESS) {
                                   log_error("%s:%d: OMAPI: Failed to connect "
                                             "a listener.", MDL);
                           }
                         omapi_listener_dereference (&lp, MDL);                          omapi_listener_dereference (&lp, MDL);
                         return;                          return;
                 }                  }

Removed from v.1.1  
changed lines
  Added in v.1.1.1.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>