~ubuntu-branches/debian/sid/isc-dhcp/sid

« back to all changes in this revision

Viewing changes to omapip/listener.c

  • Committer: Package Import Robot
  • Author(s): Andrew Pollock
  • Date: 2012-06-09 14:01:05 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120609140105-lqcz2t0rsefwzamt
Tags: 4.2.4-1
* New upstream release
* debian/control: reformatted Uploaders so that dch doesn't think I'm making
  NMUs
* debian/rules: do a clean between the LDAP-enabled build and the
  non-LDAP-enabled one, so that no LDAP-related artefacts are accidently
  incorporated into the non-LDAP build
* debian/dhclient-script.*: conditionalise the chown/chmod of the new
  resolv.conf on the existence of the old one (closes: #595400)
* debian/dhclient-script.linux: comply with RFC 3442 and ignore
  the routers option if the rfc3442-classless-static-routes option is present
  (closes: #592735)
* debian/dhclient-script.kfreebsd: fix subnet mask handling (closes: #677985)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
   Subroutines that support the generic listener object. */
4
4
 
5
5
/*
 
6
 * Copyright (c) 2012 by Internet Systems Consortium, Inc. ("ISC")
6
7
 * Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC")
7
8
 * Copyright (c) 1999-2003 by Internet Software Consortium
8
9
 *
124
125
                                status = ISC_R_UNEXPECTED;
125
126
                        goto error_exit;
126
127
                }
127
 
        
 
128
 
128
129
#if defined (HAVE_SETFD)
129
130
                if (fcntl (obj -> socket, F_SETFD, 1) < 0) {
130
131
                        status = ISC_R_UNEXPECTED;
140
141
                        status = ISC_R_UNEXPECTED;
141
142
                        goto error_exit;
142
143
                }
143
 
                
 
144
 
144
145
                /* Try to bind to the wildcard address using the port number
145
146
                   we were given. */
146
147
                i = bind (obj -> socket,
369
370
                        obj = (omapi_connection_object_t *)0;
370
371
                        status = omapi_listener_connect (&obj,
371
372
                                                         lp, 0, &remote_addr);
 
373
                        if (status != ISC_R_SUCCESS) {
 
374
                                log_error("%s:%d: OMAPI: Failed to connect "
 
375
                                          "a listener.", MDL);
 
376
                        }
372
377
                        omapi_listener_dereference (&lp, MDL);
373
378
                        return;
374
379
                }