~ubuntu-branches/ubuntu/warty/curl/warty-security

« back to all changes in this revision

Viewing changes to lib/if2ip.c

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
 
1
/***************************************************************************
2
2
 *                                  _   _ ____  _     
3
3
 *  Project                     ___| | | |  _ \| |    
4
4
 *                             / __| | | | |_) | |    
5
5
 *                            | (__| |_| |  _ <| |___ 
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
9
 
 *
10
 
 * In order to be useful for every potential user, curl and libcurl are
11
 
 * dual-licensed under the MPL and the MIT/X-derivate licenses.
12
 
 *
 
8
 * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
 
9
 *
 
10
 * This software is licensed as described in the file COPYING, which
 
11
 * you should have received as part of this distribution. The terms
 
12
 * are also available at http://curl.haxx.se/docs/copyright.html.
 
13
 * 
13
14
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
14
15
 * copies of the Software, and permit persons to whom the Software is
15
 
 * furnished to do so, under the terms of the MPL or the MIT/X-derivate
16
 
 * licenses. You may pick one of these licenses.
 
16
 * furnished to do so, under the terms of the COPYING file.
17
17
 *
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: if2ip.c,v 1.19 2001/10/11 09:32:19 bumblebury Exp $
22
 
 *****************************************************************************/
 
21
 * $Id: if2ip.c,v 1.32 2004/03/17 12:46:46 bagder Exp $
 
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
25
25
 
27
27
#include <stdlib.h>
28
28
#include <string.h>
29
29
 
30
 
 
31
30
#ifdef HAVE_UNISTD_H
32
31
#include <unistd.h>
33
32
#endif
34
33
 
35
 
#if ! defined(WIN32) && ! defined(__BEOS__) && !defined(__CYGWIN32__)
 
34
#if !defined(WIN32) && !defined(__BEOS__) && !defined(__CYGWIN32__) && \
 
35
    !defined(__riscos__) && !defined(__INTERIX) && !defined(NETWARE)
36
36
 
37
37
#ifdef HAVE_SYS_SOCKET_H
38
38
#include <sys/socket.h>
51
51
#ifdef HAVE_NET_IF_H
52
52
#include <net/if.h>
53
53
#endif
 
54
#ifdef HAVE_SYS_IOCTL_H
54
55
#include <sys/ioctl.h>
 
56
#endif
55
57
 
56
58
/* -- if2ip() -- */
57
59
#ifdef HAVE_NETDB_H
67
69
#endif
68
70
 
69
71
#ifdef  VMS
70
 
#define IOCTL_3_ARGS
71
72
#include <inet.h>
72
73
#endif
73
74
 
 
75
#include "if2ip.h"
 
76
 
74
77
/* The last #include file should be: */
75
 
#ifdef MALLOCDEBUG
 
78
#ifdef CURLDEBUG
76
79
#include "memdebug.h"
77
80
#endif
78
81
 
122
125
 
123
126
/* -- end of if2ip() -- */
124
127
#else
125
 
#define if2ip(x) NULL
 
128
char *Curl_if2ip(char *interface, char *buf, int buf_size)
 
129
{
 
130
    return NULL;
 
131
}
126
132
#endif
127
 
 
128
 
/*
129
 
 * local variables:
130
 
 * eval: (load-file "../curl-mode.el")
131
 
 * end:
132
 
 * vim600: fdm=marker
133
 
 * vim: et sw=2 ts=2 sts=2 tw=78
134
 
 */