1 /*-
2 * Copyright (c) 1990,1994 Regents of The University of Michigan.
3 * All Rights Reserved.
4 *
5 * Permission to use, copy, modify, and distribute this software and
6 * its documentation for any purpose and without fee is hereby granted,
7 * provided that the above copyright notice appears in all copies and
8 * that both that copyright notice and this permission notice appear
9 * in supporting documentation, and that the name of The University
10 * of Michigan not be used in advertising or publicity pertaining to
11 * distribution of the software without specific, written prior
12 * permission. This software is supplied as is without expressed or
13 * implied warranties of any kind.
14 *
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 *
18 * Research Systems Unix Group
19 * The University of Michigan
20 * c/o Wesley Craig
21 * 535 W. William Street
22 * Ann Arbor, Michigan
23 * +1-313-764-2278
24 * netatalk@umich.edu
25 *
26 * $FreeBSD: releng/6.0/sys/netatalk/at_extern.h 142226 2005-02-22 14:20:29Z rwatson $
27 */
28 struct mbuf;
29 struct sockaddr_at;
30
31 #ifdef _NET_IF_ARP_H_
32 extern timeout_t aarpprobe;
33 extern int aarpresolve (struct ifnet *,
34 struct mbuf *,
35 struct sockaddr_at *,
36 u_char *);
37 extern int at_broadcast (struct sockaddr_at *);
38
39 extern struct mtx aarptab_mtx;
40
41 #define AARPTAB_LOCK() mtx_lock(&aarptab_mtx)
42 #define AARPTAB_UNLOCK() mtx_unlock(&aarptab_mtx)
43 #define AARPTAB_LOCK_ASSERT() mtx_assert(&aarptab_mtx, MA_OWNED)
44 #define AARPTAB_UNLOCK_ASSERT() mtx_assert(&aarptab_mtx, MA_NOTOWNED)
45 #endif
46
47 #ifdef _NETATALK_AARP_H_
48 extern void aarptfree (struct aarptab *);
49 #endif
50
51 struct ifnet;
52 struct thread;
53 struct socket;
54
55 extern void aarpintr (struct mbuf *);
56 extern void at1intr (struct mbuf *);
57 extern void at2intr (struct mbuf *);
58 extern void aarp_clean (void);
59 extern int at_control (struct socket *so,
60 u_long cmd,
61 caddr_t data,
62 struct ifnet *ifp,
63 struct thread *td);
64 extern u_short at_cksum (struct mbuf *m, int skip);
65 extern void ddp_init (void);
66 extern struct at_ifaddr *at_ifawithnet (struct sockaddr_at *);
67 #ifdef _NETATALK_DDP_VAR_H_
68 extern int ddp_output (struct mbuf *m, struct socket *so);
69
70 #endif
71 #if defined (_NETATALK_DDP_VAR_H_) && defined(_NETATALK_AT_VAR_H_)
72 extern struct ddpcb *ddp_search(struct sockaddr_at *,
73 struct sockaddr_at *,
74 struct at_ifaddr *);
75 #endif
76 #ifdef _NET_ROUTE_H_
77 int ddp_route(struct mbuf *m, struct route *ro);
78 #endif
79
80
Cache object: 86f852f9c0d9ce192796aa7e501d387b
|