Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/libbb/inet_common.c

    r1765 r2725  
    66 * Heavily modified by Manuel Novoa III       Mar 12, 2001
    77 *
    8  *
     8 * Licensed under GPLv2, see file LICENSE in this source tree.
    99 */
    1010
     
    1212#include "inet_common.h"
    1313
    14 int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
     14int FAST_FUNC INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
    1515{
    1616    struct hostent *hp;
     
    2424
    2525    /* Default is special, meaning 0.0.0.0. */
    26     if (!strcmp(name, bb_str_default)) {
     26    if (strcmp(name, "default") == 0) {
    2727        s_in->sin_addr.s_addr = INADDR_ANY;
    2828        return 1;
     
    6464    res_init();
    6565    _res.options |= RES_DEBUG;
    66 #endif
    67 
    68 #ifdef DEBUG
    6966    bb_error_msg("gethostbyname(%s)", name);
    7067#endif
     
    8279 *          & 0x0fff: don't resolve
    8380 */
    84 char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask)
     81char* FAST_FUNC INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask)
    8582{
    8683    /* addr-to-name cache */
     
    9895    int host = 0;
    9996
    100     /* Grmpf. -FvK */
    10197    if (s_in->sin_family != AF_INET) {
    10298#ifdef DEBUG
     
    114110        if ((numeric & 0x0FFF) == 0) {
    115111            if (numeric & 0x8000)
    116                 return xstrdup(bb_str_default);
     112                return xstrdup("default");
    117113            return xstrdup("*");
    118114        }
     
    167163#if ENABLE_FEATURE_IPV6
    168164
    169 int INET6_resolve(const char *name, struct sockaddr_in6 *sin6)
     165int FAST_FUNC INET6_resolve(const char *name, struct sockaddr_in6 *sin6)
    170166{
    171167    struct addrinfo req, *ai;
     
    191187
    192188
    193 char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric)
     189char* FAST_FUNC INET6_rresolve(struct sockaddr_in6 *sin6, int numeric)
    194190{
    195191    char name[128];
    196192    int s;
    197193
    198     /* Grmpf. -FvK */
    199194    if (sin6->sin6_family != AF_INET6) {
    200195#ifdef DEBUG
    201         bb_error_msg("rresolve: unsupport address family %d!",
     196        bb_error_msg("rresolve: unsupported address family %d!",
    202197                  sin6->sin6_family);
    203198#endif
     
    211206    if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
    212207        if (numeric & 0x8000)
    213             return xstrdup(bb_str_default);
     208            return xstrdup("default");
    214209        return xstrdup("*");
    215210    }
     
    224219}
    225220
    226 #endif                          /* CONFIG_FEATURE_IPV6 */
     221#endif  /* CONFIG_FEATURE_IPV6 */
Note: See TracChangeset for help on using the changeset viewer.