1 /* $OpenBSD: at_extern.h,v 1.3 2002/03/14 01:27:10 millert Exp $ */
2 /* $NetBSD: at_extern.h,v 1.3 1997/04/03 18:38:23 christos Exp $ */
3
4 /*
5 * Copyright (c) 1990,1994 Regents of The University of Michigan.
6 * All Rights Reserved.
7 *
8 * Permission to use, copy, modify, and distribute this software and
9 * its documentation for any purpose and without fee is hereby granted,
10 * provided that the above copyright notice appears in all copies and
11 * that both that copyright notice and this permission notice appear
12 * in supporting documentation, and that the name of The University
13 * of Michigan not be used in advertising or publicity pertaining to
14 * distribution of the software without specific, written prior
15 * permission. This software is supplied as is without expressed or
16 * implied warranties of any kind.
17 *
18 * This product includes software developed by the University of
19 * California, Berkeley and its contributors.
20 *
21 * Research Systems Unix Group
22 * The University of Michigan
23 * c/o Wesley Craig
24 * 535 W. William Street
25 * Ann Arbor, Michigan
26 * +1-313-764-2278
27 * netatalk@umich.edu
28 */
29
30 /*
31 * The following is the contents of the COPYRIGHT file from the
32 * netatalk-1.4a2 distribution, from which this file is derived.
33 */
34 /*
35 * Copyright (c) 1990,1996 Regents of The University of Michigan.
36 *
37 * All Rights Reserved.
38 *
39 * Permission to use, copy, modify, and distribute this software and
40 * its documentation for any purpose and without fee is hereby granted,
41 * provided that the above copyright notice appears in all copies and
42 * that both that copyright notice and this permission notice appear
43 * in supporting documentation, and that the name of The University
44 * of Michigan not be used in advertising or publicity pertaining to
45 * distribution of the software without specific, written prior
46 * permission. This software is supplied as is without expressed or
47 * implied warranties of any kind.
48 *
49 * This product includes software developed by the University of
50 * California, Berkeley and its contributors.
51 *
52 * Solaris code is encumbered by the following:
53 *
54 * Copyright (C) 1996 by Sun Microsystems Computer Co.
55 *
56 * Permission to use, copy, modify, and distribute this software and
57 * its documentation for any purpose and without fee is hereby
58 * granted, provided that the above copyright notice appear in all
59 * copies and that both that copyright notice and this permission
60 * notice appear in supporting documentation. This software is
61 * provided "as is" without express or implied warranty.
62 *
63 * Research Systems Unix Group
64 * The University of Michigan
65 * c/o Wesley Craig
66 * 535 W. William Street
67 * Ann Arbor, Michigan
68 * +1-313-764-2278
69 * netatalk@umich.edu
70 */
71 /*
72 * None of the Solaris code mentioned is included in OpenBSD.
73 * This code also relies heavily on previous effort in FreeBSD and NetBSD.
74 * This file in particular came from NetBSD.
75 */
76
77 #ifndef _NETATALK_AT_EXTERN_H_
78 #define _NETATALK_AT_EXTERN_H_
79
80 struct ifnet;
81 struct mbuf;
82 struct sockaddr_at;
83 struct proc;
84 struct at_ifaddr;
85 struct route;
86 struct socket;
87
88 void atintr(void);
89 void aarpprobe(void *);
90 int aarpresolve(struct arpcom *, struct mbuf *,
91 struct sockaddr_at *, u_int8_t *);
92 void aarpinput(struct arpcom *, struct mbuf *);
93 int at_broadcast(struct sockaddr_at *);
94 void aarp_clean(void);
95 int at_control(u_long, caddr_t, struct ifnet *,
96 struct proc *);
97 u_int16_t at_cksum(struct mbuf *, int);
98 int ddp_usrreq(struct socket *, int,
99 struct mbuf *, struct mbuf *,
100 struct mbuf *);
101 void ddp_init(void );
102 struct ifaddr *at_ifawithnet(struct sockaddr_at *, struct ifaddr *);
103 int ddp_output(struct mbuf *, ...);
104 struct ddpcb *ddp_search(struct sockaddr_at *,
105 struct sockaddr_at *, struct at_ifaddr *);
106 int ddp_route(struct mbuf *, struct route *);
107
108 #endif /* _NETATALK_AT_EXTERN_H_ */