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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [bsd_tcpip/] [v2_0/] [include/] [netinet6/] [in6_pcb.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//==========================================================================
2
//
3
//      include/netinet6/in6_pcb.h
4
//
5
//==========================================================================
6
//####BSDCOPYRIGHTBEGIN####
7
//
8
// -------------------------------------------
9
//
10
// Portions of this software may have been derived from OpenBSD, 
11
// FreeBSD or other sources, and are covered by the appropriate
12
// copyright disclaimers included herein.
13
//
14
// Portions created by Red Hat are
15
// Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
16
//
17
// -------------------------------------------
18
//
19
//####BSDCOPYRIGHTEND####
20
//==========================================================================
21
 
22
/*      $FreeBSD: src/sys/netinet6/in6_pcb.h,v 1.2.2.3 2001/08/13 16:26:17 ume Exp $    */
23
/*      $KAME: in6_pcb.h,v 1.17 2001/11/12 11:11:22 jinmei Exp $        */
24
 
25
/*
26
 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
27
 * All rights reserved.
28
 *
29
 * Redistribution and use in source and binary forms, with or without
30
 * modification, are permitted provided that the following conditions
31
 * are met:
32
 * 1. Redistributions of source code must retain the above copyright
33
 *    notice, this list of conditions and the following disclaimer.
34
 * 2. Redistributions in binary form must reproduce the above copyright
35
 *    notice, this list of conditions and the following disclaimer in the
36
 *    documentation and/or other materials provided with the distribution.
37
 * 3. Neither the name of the project nor the names of its contributors
38
 *    may be used to endorse or promote products derived from this software
39
 *    without specific prior written permission.
40
 *
41
 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
42
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
45
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51
 * SUCH DAMAGE.
52
 *
53
 */
54
 
55
/*
56
 * Copyright (c) 1982, 1986, 1990, 1993
57
 *      The Regents of the University of California.  All rights reserved.
58
 *
59
 * Redistribution and use in source and binary forms, with or without
60
 * modification, are permitted provided that the following conditions
61
 * are met:
62
 * 1. Redistributions of source code must retain the above copyright
63
 *    notice, this list of conditions and the following disclaimer.
64
 * 2. Redistributions in binary form must reproduce the above copyright
65
 *    notice, this list of conditions and the following disclaimer in the
66
 *    documentation and/or other materials provided with the distribution.
67
 * 3. All advertising materials mentioning features or use of this software
68
 *    must display the following acknowledgement:
69
 *      This product includes software developed by the University of
70
 *      California, Berkeley and its contributors.
71
 * 4. Neither the name of the University nor the names of its contributors
72
 *    may be used to endorse or promote products derived from this software
73
 *    without specific prior written permission.
74
 *
75
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
76
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
77
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
78
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
79
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
80
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
81
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
82
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
83
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
84
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
85
 * SUCH DAMAGE.
86
 *
87
 *      @(#)in_pcb.h    8.1 (Berkeley) 6/10/93
88
 */
89
 
90
#ifndef _NETINET6_IN6_PCB_H_
91
#define _NETINET6_IN6_PCB_H_
92
 
93
#ifdef _KERNEL
94
#define satosin6(sa)    ((struct sockaddr_in6 *)(sa))
95
#define sin6tosa(sin6)  ((struct sockaddr *)(sin6))
96
#define ifatoia6(ifa)   ((struct in6_ifaddr *)(ifa))
97
 
98
void    in6_pcbpurgeif0 __P((struct in6pcb *, struct ifnet *));
99
void    in6_losing __P((struct inpcb *));
100
int     in6_pcballoc __P((struct socket *, struct inpcbinfo *, struct proc *));
101
int     in6_pcbbind __P((struct inpcb *, struct sockaddr *, struct proc *));
102
int     in6_pcbconnect __P((struct inpcb *, struct sockaddr *, struct proc *));
103
void    in6_pcbdetach __P((struct inpcb *));
104
void    in6_pcbdisconnect __P((struct inpcb *));
105
int     in6_pcbladdr __P((struct inpcb *, struct sockaddr *,
106
                          struct in6_addr **));
107
struct  inpcb *
108
        in6_pcblookup_local __P((struct inpcbinfo *,
109
                                 struct in6_addr *, u_int, int));
110
struct  inpcb *
111
        in6_pcblookup_hash __P((struct inpcbinfo *,
112
                                struct in6_addr *, u_int, struct in6_addr *,
113
                                u_int, int, struct ifnet *));
114
void    in6_pcbnotify __P((struct inpcbhead *, struct sockaddr *,
115
                           u_int, struct sockaddr *, u_int, int, void *,
116
                           void (*)(struct inpcb *, int)));
117
void    in6_rtchange __P((struct inpcb *, int));
118
int     in6_setpeeraddr __P((struct socket *so, struct sockaddr **nam));
119
int     in6_setsockaddr __P((struct socket *so, struct sockaddr **nam));
120
int     in6_mapped_sockaddr __P((struct socket *so, struct sockaddr **nam));
121
int     in6_mapped_peeraddr __P((struct socket *so, struct sockaddr **nam));
122
struct  in6_addr *in6_selectsrc __P((struct sockaddr_in6 *,
123
                                     struct ip6_pktopts *,
124
                                     struct ip6_moptions *,
125
                                     struct route *,
126
                                     struct ifnet **,
127
                                     struct in6_addr *,
128
                                     int *));
129
int in6_selectroute __P((struct sockaddr_in6 *, struct ip6_pktopts *,
130
                         struct ip6_moptions *, struct route *,
131
                         struct ifnet **, struct rtentry **, int));
132
int     in6_selecthlim __P((struct in6pcb *, struct ifnet *));
133
int     in6_pcbsetport __P((struct in6_addr *, struct inpcb *, struct proc *));
134
void    init_sin6 __P((struct sockaddr_in6 *sin6, struct mbuf *m));
135
#endif /* _KERNEL */
136
 
137
#endif /* !_NETINET6_IN6_PCB_H_ */

powered by: WebSVN 2.1.0

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