2 * $Id: at_proto.c,v 1.2 2001-06-29 14:14:47 rufustfirefly Exp $
4 * Copyright (c) 1990,1991 Regents of The University of Michigan.
6 * All Rights Reserved. See COPYRIGHT.
11 #endif /* HAVE_CONFIG_H */
13 #include <sys/protosw.h>
14 #include <sys/domain.h>
15 #include <sys/types.h>
16 #include <sys/socket.h>
20 extern int ddp_usrreq();
21 extern int ddp_output();
22 extern int ddp_init();
25 extern int ddp_ifoutput();
26 extern int ddp_ifinput();
27 extern int ddp_ifioctl();
30 struct protosw atalksw[] = {
33 SOCK_DGRAM, &atalkdomain, ATPROTO_DDP, PR_ATOMIC|PR_ADDR,
35 * protocol-protocol interface.
36 * fields are pr_input, pr_output, pr_ctlinput, and pr_ctloutput.
37 * pr_input can be called from the udp protocol stack for iptalk
38 * packets bound for a local socket.
39 * pr_output can be used by higher level appletalk protocols, should
40 * they be included in the kernel.
43 /* socket-protocol interface. */
45 /* utility routines. */
49 ddp_ifoutput, ddp_ifinput, ddp_ifioctl, 0,
54 struct domain atalkdomain = {
55 AF_APPLETALK, "appletalk", 0, 0, 0, atalksw,
56 &atalksw[ sizeof( atalksw ) / sizeof( atalksw[ 0 ] ) ]