~andreserl/ubuntu/lucid/bind9/bind9-apport-533601

« back to all changes in this revision

Viewing changes to lib/isc/unix/include/isc/net.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2009-01-26 10:33:42 UTC
  • mfrom: (1.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090126103342-zfv3z8v6jgci62tg
* New upstream patch release
  - supportable version of fix from 9.5.0.dfsg.P2-5.1
  - CVE-2009-0025:  Closes: #511936
  - 2475: Overly agressive cache entry removal.  Closes: #511768
  - other bug fixes worthy of patch-release inclusion

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004, 2005, 2007, 2008  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1999-2003  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and/or distribute this software for any
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: net.h,v 1.46 2007/06/19 23:47:19 tbox Exp $ */
 
18
/* $Id: net.h,v 1.46.128.2 2008/06/24 23:46:27 tbox Exp $ */
19
19
 
20
20
#ifndef ISC_NET_H
21
21
#define ISC_NET_H 1
104
104
/*%
105
105
 * Required for some pre RFC2133 implementations.
106
106
 * IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT were added in
107
 
 * draft-ietf-ipngwg-bsd-api-04.txt or draft-ietf-ipngwg-bsd-api-05.txt.  
 
107
 * draft-ietf-ipngwg-bsd-api-04.txt or draft-ietf-ipngwg-bsd-api-05.txt.
108
108
 * If 's6_addr' is defined then assume that there is a union and three
109
109
 * levels otherwise assume two levels required.
110
110
 */
202
202
 
203
203
#ifdef ISC_PLATFORM_FIXIN6ISADDR
204
204
#undef  IN6_IS_ADDR_GEOGRAPHIC
205
 
/*! 
 
205
/*!
206
206
 * \brief
207
207
 * Fix UnixWare 7.1.1's broken IN6_IS_ADDR_* definitions.
208
208
 */
324
324
 * Returns whether UNIX domain sockets are supported.
325
325
 */
326
326
 
 
327
isc_result_t
 
328
isc_net_getudpportrange(int af, in_port_t *low, in_port_t *high);
 
329
/*%<
 
330
 * Returns system's default range of ephemeral UDP ports, if defined.
 
331
 * If the range is not available or unknown, ISC_NET_PORTRANGELOW and
 
332
 * ISC_NET_PORTRANGEHIGH will be returned.
 
333
 *
 
334
 * Requires:
 
335
 *
 
336
 *\li   'low' and 'high' must be non NULL.
 
337
 *
 
338
 * Returns:
 
339
 *
 
340
 *\li   *low and *high will be the ports specifying the low and high ends of
 
341
 *      the range.
 
342
 */
 
343
 
327
344
#ifdef ISC_PLATFORM_NEEDNTOP
328
345
const char *
329
346
isc_net_ntop(int af, const void *src, char *dst, size_t size);