~ubuntu-branches/ubuntu/maverick/bind9/maverick

« back to all changes in this revision

Viewing changes to lib/bind/irs/getnameinfo.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, LaMont Jones, Internet Software Consortium, Inc, localization folks
  • Date: 2008-08-02 14:20:20 UTC
  • mfrom: (1.2.1 upstream) (6.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080802142020-l1hon9jy8lbbjxmg
[LaMont Jones]

* default to using resolvconf if it is installed
* fix sonames and dependencies.  Closes: #149259, #492418
* Do not build-depend libcap2-dev on non-linux.  Closes: #493392
* drop unused query-loc manpage.  Closes: #492564
* lwresd: Deliver /etc/bind directory.  Closes: #490027
* fix query-source comment in default install

[Internet Software Consortium, Inc]

* 9.5.0-P2.  Closes: #492949

[localization folks]

* l10n: Spanish debconf translation.  Closes: #492425 (Ignacio Mondino)
* l10n: Swedish debconf templates.  Closes: #491369 (Martin Ågren)
* l10n: Japanese debconf translations.  Closes: #492048 (Hideki Yamane
  (Debian-JP))
* l10n: Finnish translation.  Closes: #490630 (Esko Arajärvi)
* l10n: Italian debconf translations.  Closes: #492587 (Alessandro Vietta)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * - Thread safe-ness must be checked
4
4
 */
5
5
 
 
6
#if ( defined(__linux__) || defined(__linux) || defined(LINUX) )
 
7
#ifndef IF_NAMESIZE
 
8
# ifdef IFNAMSIZ
 
9
#  define IF_NAMESIZE  IFNAMSIZ
 
10
# else
 
11
#  define IF_NAMESIZE 16
 
12
# endif
 
13
#endif
 
14
#endif
 
15
 
6
16
/*
7
17
 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
8
18
 * All rights reserved.
53
63
 
54
64
#include <port_after.h>
55
65
 
56
 
/*
 
66
/*%
57
67
 * Note that a_off will be dynamically adjusted so that to be consistent
58
68
 * with the definition of sockaddr_in{,6}.
59
69
 * The value presented below is just a guess.
129
139
 found:
130
140
        if (salen != afd->a_socklen) return EAI_FAIL;
131
141
 
132
 
        port = ((const struct sockinet *)sa)->si_port; /* network byte order */
 
142
        port = ((const struct sockinet *)sa)->si_port; /*%< network byte order */
133
143
        addr = (const char *)sa + afd->a_off;
134
144
 
135
145
        if (serv == NULL || servlen == 0U) {
241
251
                return EAI_SYSTEM;
242
252
 
243
253
        numaddrlen = strlen(numaddr);
244
 
        if (numaddrlen + 1 > hostlen) /* don't forget terminator */
 
254
        if (numaddrlen + 1 > hostlen) /*%< don't forget terminator */
245
255
                return EAI_MEMORY;
246
256
        strcpy(host, numaddr);
247
257
 
248
258
#ifdef HAVE_SIN6_SCOPE_ID
249
259
        if (((const struct sockaddr_in6 *)sa)->sin6_scope_id) {
250
 
                char scopebuf[MAXHOSTNAMELEN]; /* XXX */
 
260
                char scopebuf[MAXHOSTNAMELEN]; /*%< XXX */
251
261
                int scopelen;
252
262
 
253
263
                /* ip6_sa2str never fails */
320
330
        return(strlen(tmp));
321
331
}
322
332
#endif
 
333
 
 
334
/*! \file */