OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [common/] [current/] [include/] [ifaddrs.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//==========================================================================
2
//
3
//      include/ifaddrs.h
4
//
5
//==========================================================================
6
// ####BSDCOPYRIGHTBEGIN####                                    
7
// -------------------------------------------                  
8
// This file is part of eCos, the Embedded Configurable Operating System.
9
//
10
// Portions of this software may have been derived from FreeBSD, OpenBSD,
11
// or other sources, and if so are covered by the appropriate copyright
12
// and license included herein.                                 
13
//
14
// Portions created by the Free Software Foundation are         
15
// Copyright (C) 2002 Free Software Foundation, Inc.            
16
// -------------------------------------------                  
17
// ####BSDCOPYRIGHTEND####                                      
18
//==========================================================================
19
/*      $KAME: ifaddrs.h,v 1.3 2001/01/26 08:14:55 itojun Exp $ */
20
 
21
/*
22
 * Copyright (c) 1995, 1999
23
 *      Berkeley Software Design, Inc.  All rights reserved.
24
 *
25
 * Redistribution and use in source and binary forms, with or without
26
 * modification, are permitted provided that the following conditions
27
 * are met:
28
 * 1. Redistributions of source code must retain the above copyright
29
 *    notice, this list of conditions and the following disclaimer.
30
 *
31
 * THIS SOFTWARE IS PROVIDED BY Berkeley Software Design, Inc. ``AS IS'' AND
32
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34
 * ARE DISCLAIMED.  IN NO EVENT SHALL Berkeley Software Design, Inc. BE LIABLE
35
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
39
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
40
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
41
 * SUCH DAMAGE.
42
 *
43
 *      BSDI ifaddrs.h,v 2.5 2000/02/23 14:51:59 dab Exp
44
 */
45
 
46
#ifndef _IFADDRS_H_
47
#define _IFADDRS_H_
48
 
49
struct ifaddrs {
50
        struct ifaddrs  *ifa_next;
51
        char            *ifa_name;
52
        u_int            ifa_flags;
53
        struct sockaddr *ifa_addr;
54
        struct sockaddr *ifa_netmask;
55
        struct sockaddr *ifa_dstaddr;
56
        void            *ifa_data;
57
};
58
 
59
/*
60
 * This may have been defined in <net/if.h>.  Note that if <net/if.h> is
61
 * to be included it must be included before this header file.
62
 */
63
#ifndef ifa_broadaddr
64
#define ifa_broadaddr   ifa_dstaddr     /* broadcast address interface */
65
#endif
66
 
67
__BEGIN_DECLS
68
extern int getifaddrs __P((struct ifaddrs **));
69
extern void freeifaddrs __P((struct ifaddrs *));
70
__END_DECLS
71
 
72
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.