FreeBSD/Linux Kernel Cross Reference
sys/netiso/tp_var.h
1 /* $NetBSD: tp_var.h,v 1.6 2003/06/29 22:32:07 fvdl Exp $ */
2
3 /*-
4 * Copyright (c) 1995 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #ifdef _KERNEL
40 struct isopcb;
41 struct mbuf;
42 struct sockaddr_iso;
43 struct tp_pcb;
44 struct sockaddr_in;
45 struct iso_addr;
46 struct tp_conn_param;
47 struct tp_event;
48 struct inpcb;
49 struct route;
50 struct pklcd;
51 struct sockaddr;
52 struct x25_packet;
53 struct in_addr;
54
55
56 /* tp_cons.c */
57 int tpcons_pcbconnect __P((void *, struct mbuf *));
58 void *tpcons_ctlinput __P((int, struct sockaddr *, void *));
59 void tpcons_input __P((struct mbuf *, ...));
60 int tpcons_output __P((struct mbuf *, ...));
61 int tpcons_output_dg __P((struct mbuf *, ...));
62
63 /* tp_driver.c */
64 int tp_driver __P((struct tp_pcb *, struct tp_event *));
65
66 /* tp_emit.c */
67 int tp_emit __P((int, struct tp_pcb *, SeqNum, u_int, struct mbuf *));
68 int tp_error_emit __P((int, u_long, struct sockaddr_iso *,
69 struct sockaddr_iso *, struct mbuf *, int,
70 struct tp_pcb *, caddr_t,
71 int (*) (struct mbuf *, ...)));
72
73 /* tp_inet.c */
74 void in_getsufx __P((void *, u_short *, caddr_t, int));
75 void in_putsufx __P((void *, caddr_t, int, int));
76 void in_recycle_tsuffix __P((void *));
77 void in_putnetaddr __P((void *, struct sockaddr *, int));
78 int in_cmpnetaddr __P((void *, struct sockaddr *, int));
79 void in_getnetaddr __P((void *, struct mbuf *, int));
80 int tpip_mtu __P((void *));
81 int tpip_output __P((struct mbuf *, ...));
82 int tpip_output_dg __P((struct mbuf *, ...));
83 void tpip_input __P((struct mbuf *, ...));
84 void tpin_quench __P((struct inpcb *, int));
85 void *tpip_ctlinput __P((int, struct sockaddr *, void *));
86 void tpin_abort __P((struct inpcb *, int));
87 void dump_inaddr __P((struct sockaddr_in *));
88
89 /* tp_input.c */
90 struct mbuf *tp_inputprep __P((struct mbuf *));
91 void tp_input __P((struct mbuf *, ...));
92 int tp_headersize __P((int, struct tp_pcb *));
93
94 /* tp_iso.c */
95 void iso_getsufx __P((void *, u_short *, caddr_t, int));
96 void iso_putsufx __P((void *, caddr_t, int, int));
97 void iso_recycle_tsuffix __P((void *));
98 void iso_putnetaddr __P((void *, struct sockaddr *, int));
99 int iso_cmpnetaddr __P((void *, struct sockaddr *, int));
100 void iso_getnetaddr __P((void *, struct mbuf *, int));
101 int tpclnp_mtu __P((void *));
102 int tpclnp_output __P((struct mbuf *, ...));
103 int tpclnp_output_dg __P((struct mbuf *, ...));
104 void tpclnp_input __P((struct mbuf *, ...));
105 void iso_rtchange __P((struct isopcb *));
106 void tpiso_decbit __P((struct isopcb *));
107 void tpiso_quench __P((struct isopcb *));
108 void *tpclnp_ctlinput __P((int, struct sockaddr *, void *));
109 void tpclnp_ctlinput1 __P((int, struct iso_addr *));
110 void tpiso_abort __P((struct isopcb *));
111 void tpiso_reset __P((struct isopcb *));
112
113 /* tp_meas.c */
114 void Tpmeas __P((u_int, u_int, struct timeval *, u_int, u_int, u_int));
115
116 /* tp_output.c */
117 int tp_consistency __P((struct tp_pcb *, u_int, struct tp_conn_param *));
118 int tp_ctloutput __P((int, struct socket *, int, int, struct mbuf **));
119
120 /* tp_pcb.c */
121 void tp_init __P((void));
122 void tp_soisdisconnecting __P((struct socket *));
123 void tp_soisdisconnected __P((struct tp_pcb *));
124 void tp_freeref __P((RefNum));
125 u_long tp_getref __P((struct tp_pcb *));
126 int tp_set_npcb __P((struct tp_pcb *));
127 int tp_attach __P((struct socket *, long));
128 void tp_detach __P((struct tp_pcb *));
129 int tp_tselinuse __P((int, caddr_t, struct sockaddr_iso *, int));
130 int tp_pcbbind __P((void *, struct mbuf *, struct proc *));
131
132 /* tp_subr.c */
133 int tp_goodXack __P((struct tp_pcb *, SeqNum));
134 void tp_rtt_rtv __P((struct tp_pcb *));
135 int tp_goodack __P((struct tp_pcb *, u_int, SeqNum, u_int));
136 int tp_sbdrop __P((struct tp_pcb *, SeqNum));
137 void tp_send __P((struct tp_pcb *));
138 int tp_packetize __P((struct tp_pcb *, struct mbuf *, int));
139 int tp_stash __P((struct tp_pcb *, struct tp_event *));
140 void tp_rsyflush __P((struct tp_pcb *));
141 void tp_rsyset __P((struct tp_pcb *));
142 void tpsbcheck __P((struct tp_pcb *, int));
143
144 /* tp_subr2.c */
145 void tp_local_credit __P((struct tp_pcb *));
146 int tp_protocol_error __P((struct tp_event *, struct tp_pcb *));
147 void tp_drain __P((void));
148 void tp_indicate __P((int, struct tp_pcb *, u_short));
149 void tp_getoptions __P((struct tp_pcb *));
150 void tp_recycle_tsuffix __P((void *));
151 void tp_quench __P((struct inpcb *, int));
152 void tp_netcmd __P((struct tp_pcb *, int));
153 int tp_mask_to_num __P((u_char));
154 void tp_mss __P((struct tp_pcb *, int));
155 int tp_route_to __P((struct mbuf *, struct tp_pcb *, caddr_t));
156 void tp0_stash __P((struct tp_pcb *, struct tp_event *));
157 void tp0_openflow __P((struct tp_pcb *));
158 int tp_setup_perf __P((struct tp_pcb *));
159 void dump_addr __P((struct sockaddr *));
160 void Dump_buf __P((caddr_t, int));
161
162 /* tp_timer.c */
163 void tp_timerinit __P((void));
164 void tp_etimeout __P((struct tp_pcb *, int, int));
165 void tp_euntimeout __P((struct tp_pcb *, int));
166 void tp_slowtimo __P((void));
167 void tp_data_retrans __P((struct tp_pcb *));
168 void tp_fasttimo __P((void));
169 void tp_ctimeout __P((struct tp_pcb *, int, int));
170 void tp_ctimeout_MIN __P((struct tp_pcb *, int, int));
171 void tp_cuntimeout __P((struct tp_pcb *, int));
172
173 /* tp_trace.c */
174 void tpTrace __P((struct tp_pcb *, u_int, u_int, u_int, u_int, u_int,
175 u_int));
176
177 /* tp_usrreq.c */
178 void dump_mbuf __P((struct mbuf *, char *));
179 int tp_rcvoob __P((struct tp_pcb *, struct socket *, struct mbuf *,
180 int *, int));
181 int tp_sendoob __P((struct tp_pcb *, struct socket *, struct mbuf *, int *));
182 int tp_usrreq __P((struct socket *, int, struct mbuf *, struct mbuf *,
183 struct mbuf *, struct proc *));
184 void tp_ltrace __P((struct socket *, struct uio *));
185 int tp_confirm __P((struct tp_pcb *));
186 int tp_snd_control __P((struct mbuf *, struct socket *, struct mbuf **));
187
188 #ifdef TPCONS
189 /* if_cons.c */
190 void nibble_copy __P((char *, unsigned, char *, unsigned, int));
191 int nibble_match __P((char *, unsigned, char *, unsigned, int));
192 void cons_init __P((void));
193 int tp_incoming __P((struct mbuf *, void *));
194 int cons_tpinput __P((struct mbuf *, void *));
195 int cons_connect __P((struct isopcb *));
196 void *cons_ctlinput __P((int, struct sockaddr *, void *));
197 int find_error_reason __P((struct x25_packet *));
198 #endif
199
200 #endif
Cache object: 3bca7fa798248df7623c267655026013
|