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