3 * ===================================
4 * HARP | Host ATM Research Platform
5 * ===================================
8 * This Host ATM Research Platform ("HARP") file (the "Software") is
9 * made available by Network Computing Services, Inc. ("NetworkCS")
10 * "AS IS". NetworkCS does not provide maintenance, improvements or
11 * support of any kind.
13 * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
14 * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
15 * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
16 * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
17 * In no event shall NetworkCS be responsible for any damages, including
18 * but not limited to consequential damages, arising from or relating to
19 * any use of the Software or related support.
21 * Copyright 1994-1998 Network Computing Services, Inc.
23 * Copies of this Software may be made, however, the above copyright
24 * notice must be reproduced on all copies.
26 * @(#) $FreeBSD: src/sys/netatm/atm_proto.c,v 1.3 1999/08/28 00:48:36 peter Exp $
27 * @(#) $DragonFly: src/sys/netproto/atm/atm_proto.c,v 1.7 2004/06/07 07:01:36 dillon Exp $
34 * ATM socket protocol family support definitions
38 #include "kern_include.h"
40 struct protosw atmsw[] = {
41 { SOCK_DGRAM, /* ioctl()-only */
49 cpu0_soport, /* pr_soport */
54 &atm_dgram_usrreqs, /* pr_usrreqs */
57 { SOCK_SEQPACKET, /* AAL-5 */
60 PR_ATOMIC|PR_CONNREQUIRED,
64 atm_aal5_ctloutput, /* pr_ctloutput */
65 cpu0_soport, /* pr_ousrreq */
70 &atm_aal5_usrreqs, /* pr_usrreqs */
74 { SOCK_SEQPACKET, /* SSCOP */
77 PR_ATOMIC|PR_CONNREQUIRED|PR_WANTRCVD,
92 struct domain atmdomain = {
95 #if defined(__DragonFly__)
103 &atmsw[sizeof(atmsw) / sizeof(atmsw[0])]
111 #if (defined(__DragonFly__) && (BSD >= 199506))
113 * Protocol request not supported
116 * so pointer to socket
119 * errno error - operation not supported
123 atm_proto_notsupp1(struct socket *so)
130 * Protocol request not supported
133 * so pointer to socket
134 * addr pointer to protocol address
135 * p pointer to process
138 * errno error - operation not supported
142 atm_proto_notsupp2(struct socket *so, struct sockaddr *addr, thread_t td)
149 * Protocol request not supported
152 * so pointer to socket
153 * addr pointer to pointer to protocol address
156 * errno error - operation not supported
160 atm_proto_notsupp3(so, addr)
162 struct sockaddr **addr;
169 * Protocol request not supported
172 * so pointer to socket
174 * m pointer to kernel buffer
175 * addr pointer to protocol address
176 * m2 pointer to kernel buffer
177 * p pointer to process
180 * errno error - operation not supported
188 struct sockaddr *addr,
195 #endif /* (defined(__DragonFly__) && (BSD >= 199506)) */