at_extern.h revision 1.14 1 1.14 dyoung /* $NetBSD: at_extern.h,v 1.14 2007/02/17 22:34:10 dyoung Exp $ */
2 1.1 christos
3 1.1 christos /*
4 1.1 christos * Copyright (c) 1990,1994 Regents of The University of Michigan.
5 1.1 christos * All Rights Reserved.
6 1.1 christos *
7 1.1 christos * Permission to use, copy, modify, and distribute this software and
8 1.1 christos * its documentation for any purpose and without fee is hereby granted,
9 1.1 christos * provided that the above copyright notice appears in all copies and
10 1.1 christos * that both that copyright notice and this permission notice appear
11 1.1 christos * in supporting documentation, and that the name of The University
12 1.1 christos * of Michigan not be used in advertising or publicity pertaining to
13 1.1 christos * distribution of the software without specific, written prior
14 1.1 christos * permission. This software is supplied as is without expressed or
15 1.1 christos * implied warranties of any kind.
16 1.1 christos *
17 1.1 christos * This product includes software developed by the University of
18 1.1 christos * California, Berkeley and its contributors.
19 1.1 christos *
20 1.1 christos * Research Systems Unix Group
21 1.1 christos * The University of Michigan
22 1.1 christos * c/o Wesley Craig
23 1.1 christos * 535 W. William Street
24 1.1 christos * Ann Arbor, Michigan
25 1.1 christos * +1-313-764-2278
26 1.1 christos * netatalk (at) umich.edu
27 1.1 christos */
28 1.1 christos
29 1.1 christos #ifndef _NETATALK_AT_EXTERN_H_
30 1.1 christos #define _NETATALK_AT_EXTERN_H_
31 1.1 christos
32 1.2 christos struct ifnet;
33 1.2 christos struct mbuf;
34 1.2 christos struct sockaddr_at;
35 1.2 christos struct proc;
36 1.4 thorpej struct ifaddr;
37 1.2 christos struct at_ifaddr;
38 1.2 christos struct route;
39 1.2 christos struct socket;
40 1.6 matt
41 1.6 matt extern struct mowner atalk_rx_mowner;
42 1.6 matt extern struct mowner atalk_tx_mowner;
43 1.2 christos
44 1.14 dyoung void atintr(void);
45 1.14 dyoung void aarpprobe(void *);
46 1.14 dyoung int aarpresolve(struct ifnet *, struct mbuf *, const struct sockaddr_at *,
47 1.14 dyoung u_char *);
48 1.14 dyoung void aarpinput(struct ifnet *, struct mbuf *);
49 1.14 dyoung int at_broadcast(const struct sockaddr_at *);
50 1.14 dyoung void aarp_clean(void);
51 1.14 dyoung int at_control(u_long, caddr_t, struct ifnet *, struct lwp *);
52 1.14 dyoung int at_inithead(void **, int);
53 1.14 dyoung void at_purgeaddr(struct ifaddr *, struct ifnet *);
54 1.14 dyoung void at_purgeif(struct ifnet *);
55 1.1 christos u_int16_t
56 1.14 dyoung at_cksum(struct mbuf *, int);
57 1.14 dyoung int ddp_usrreq(struct socket *, int, struct mbuf *, struct mbuf *,
58 1.14 dyoung struct mbuf *, struct lwp *);
59 1.14 dyoung void ddp_init(void);
60 1.1 christos struct ifaddr *
61 1.14 dyoung at_ifawithnet(const struct sockaddr_at *, struct ifnet *);
62 1.14 dyoung int ddp_output(struct mbuf *, ...);
63 1.1 christos struct ddpcb *
64 1.14 dyoung ddp_search(struct sockaddr_at *, struct sockaddr_at *,
65 1.14 dyoung struct at_ifaddr *);
66 1.14 dyoung int ddp_route(struct mbuf *, struct route *);
67 1.14 dyoung char * prsockaddr(const void *);
68 1.1 christos
69 1.1 christos
70 1.10 elad #endif /* !_NETATALK_AT_EXTERN_H_ */
71